Mesh Workbench/sv: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 14: Line 14:


The mesh module has currently a very simple interface, all its functions are grouped in the '''Mesh''' menu entry. The most important operations you can currently do with meshes are:
The mesh module has currently a very simple interface, all its functions are grouped in the '''Mesh''' menu entry. The most important operations you can currently do with meshes are:
* [[Image:Mesh_Import_Mesh.svg|32px]] Import meshes in several file formats
* [[Image:Mesh_Import_Mesh.svg|32px]] [[Mesh Import|Import Mesh]]: Import meshes in several file formats
* [[Image:Mesh_Export_Mesh.svg|32px]] Export meshes in several file formats
* [[Image:Mesh_Export_Mesh.svg|32px]] [[Mesh Export|Export Mesh]]: Export meshes in several file formats
* [[Image:Mesh_Mesh_from_Shape.svg|32px]] Convert [[Part Module|Part]] objects into meshes
* [[Image:Mesh_Mesh_from_Shape.svg|32px]] [[Mesh MeshFromShape|Create Mesh from shape]]: Convert [[Part Module|Part]] objects into meshes
* [[Image:Mesh_Harmonize_Normals.svg|32px]] Harmonize normals
* [[Image:Mesh_Harmonize_Normals.svg|32px]] [[Mesh HarmonizeNormals|Harmonize Normals]]: Harmonize normals
* [[Image:Mesh_Flip_Normals.svg|32px]] Flip [http://en.wikipedia.org/wiki/Surface_normal normals]
* [[Image:Mesh_Flip_Normals.svg|32px]] [[Mesh FlipNormals|Flip Normals]]: Flip [http://en.wikipedia.org/wiki/Surface_normal normals]
* [[Mesh FillHoles|Fill Holes...]]: Fill up holes
* [[Image:Mesh_boundary.svg|32px]] Close holes in meshes
* [[Image:Mesh_Remove_Components.svg|32px]] Remove components of meshes
* [[Image:Mesh_boundary.svg|32px]] [[Mesh FillInteractiveHole|Close hole]]: Close holes in meshes
* [[Image:Mesh_cut.svg|32px]] Cut meshes along a line
* [[Image:Mesh_Remove_Components.svg|32px]] [[Mesh RemoveComponents|Remove components...]]: Remove components of meshes
* [[Mesh RemoveCompByHand|Remove components by hand...]]: Remove components of meshes by hand
* [[Mesh AddTriangle|Add triangle]]: Add triangle
* [[Mesh Smooth|Smooth...]]: Smooth mesh




Analyse curvature, faces, and check if a mesh can be safely converted into a solid
* '''Analyze''' curvature, faces, and check if a mesh can be safely converted into a solid
** [[Mesh EvaluateRepair|Evaluate & Repair mesh...]]: Evaluates and repairs meshes
** [[Image:Mesh_pipette.svg|32px]] [[Mesh EvaluateFacet|Face Info]]: Gives info on faces
** [[Mesh EvaluateCurvature|Curvature Info]]: Gives info on curvature
** [[Mesh EvaluateSolid|Check solid mesh]]: Checks the solid if it can be converted to a mesh
** [[Mesh BoundingBox|Boundings info...]]: Evaluates the bounding box of a mesh




Line 36: Line 44:




* Union, subtract and intersect meshes
* Do '''Boolean''' operations with meshes
** [[Mesh Union|Union]]: Does a union (fusion) on meshes
** [[Mesh Intersection|Intersection]]: Does an intersection (common) on meshes
** [[Mesh Difference|Difference]]: Does a difference (cut) on meshes


* [[Mesh Merge|Merge]]: Merges meshes
* [[Mesh SelectMesh|Select Mesh]]: Selects meshes
* [[Image:Mesh_cut.svg|32px]] [[Mesh Cut|Cut mesh]]: Cut meshes along a line
* [[Mesh SplitMesh|Split Mesh]]: Splits meshes
* [[Image:PolygonPick.svg|32px]] [[Mesh MakeSegment|Make segment]]: Makes a segment
* [[Mesh TrimMesh|Trim mesh]]: Trims meshes
* [[Mesh TrimMeshWithPlane|Trim mesh with a plane]]: Trims meshes with a plane
* [[Mesh CreateMeshSegment|Create mesh segments...]]: Creates mesh segments
* [[Image:Mesh_Curvature_Plot.svg|32px]] [[Mesh CurvaturePlot|Curvature Plot]]: Creates a curvature plot





Revision as of 18:35, 14 March 2016

The Mesh Workbench handles triangle meshes. Meshes are a special type of 3D object, composed of triangles connected by their edges and their corners (also called vertices).

An example of a mesh object

Ett exempel på ett nätobjekt

Många 3D applikationer använder nät som deras primära 3D objektstyp, som sketchup, blender, maya eller 3d studio max. Eftersom nät är mycket simpla objekt, som endast innehåller hörn (punkter), kanter och (triangulära) ytor, så är de mycket lätta att skapa, förändra, dela upp, sträcka ut, och kan lätt flyttas från en applikation till en annan utan några förluster. Eftersom de dessutom innehåller mycket simpel data, så kan 3D applikationer vanligtvis hantera mycket stora kvantiteter av dem utan några problem. Av dessa anledningar, så är nät ofta den valda 3D objekttypen i applikationer för filmer, animeringar, och bildbehandling.

Emellertid har nät en stor begränsning inom konstruktionsfältet: De är mycket 'dumma' objekt, som endast består av punkter, linjer och ytor. De består endast av ytor, och har ingen informationom dess massa, så de beter sig inte som solider. I ett nät så finns det inget automatiskt sätt att avgöra om en punkt är inuti eller utanför objektet. Detta innebär att alla solidbaserade operationer, som addition eller subtraktion, alltid är svåra att utföra på nät, och ofta orsakar fel.

I FreeCAD, eftersom det är en konstruktionsapplikation, skulle vi givetvis föredra att arbeta med mer intelligenta 3D objekttyper, som kan innehålla mer information, som massa, solidbeteende, eller till och med anpassade parametrar. Nätmodulen skapades först bara för att tjäna som test, men att kunna läsa, manipulera och konvertera nät är också mycket viktigt för FreeCAD. I ditt arbetsflöde kommer du ofta ta emot 3D data i nätformat. Du kommer att behöva kunna hantera denna data, analysera den för att upptäcka fel eller andra problem som förhindrar dem från att konverteras till mer intelligenta objekt, och slutligen, konvertera dem till mer intelligenta objekt, som kan hanteras av Del Modulen.

Använda nätmodulen

The mesh module has currently a very simple interface, all its functions are grouped in the Mesh menu entry. The most important operations you can currently do with meshes are:



  • File:Mesh Regular Solid.svg Regular solid... Create mesh primitives, like cubes, cylinders, cones, or spheres:
    • Create a mesh cube
    • Create a mesh cylinder
    • Create a mesh cone
    • Create a mesh sphere
    • Create a mesh ellipsoid
    • Create a mesh torus


  • Do Boolean operations with meshes
    • Union: Does a union (fusion) on meshes
    • Intersection: Does an intersection (common) on meshes
    • Difference: Does a difference (cut) on meshes



Detta är bara några av de grundläggande operationerna som för närvarande finns i Nätmodulens gränssnitt. Men FreeCAD nät kan också hanteras på många fler sätt med skript.

Links


PartDesign Workbench
OpenSCAD Module