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)
 
(26 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
{{docnav|[[Inspection Workbench|Inspection Workbench]]|[[OpenSCAD Module|OpenSCAD Module]]|IconL=InspectionWorkbench.svg|IconR=OpenSCADWorkbench.svg}}


{{Docnav
[[Image:Workbench_Mesh.svg|64px]]
|[[Inspection_Workbench|Inspection Workbench]]
|[[OpenSCAD_Workbench|OpenSCAD Workbench]]
|IconL=Workbench_Inspection.svg
|IconR=Workbench_OpenSCAD.svg
}}

[[Image:Workbench_Mesh.svg|thumb|128px|Mesh workbench icon]]

{{TOCright}}

==Introduction==


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 16: Line 26:
</div>
</div>


[[Image:Mesh_example.jpg|500px]]
{{TOCright}}
[[Image:Mesh_example.jpg|600px]]


<span id="Tools"></span>
<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
=== Använda nätmodulen ===
=== Använda nätmodulen ===
Line 28: Line 38:
* Importera nät i flera filformat
* Importera nät i flera filformat
* Exportera nät i flera filformat
* Exportera nät i flera filformat
* Konvertera [[Part Module/sv|Del]] objekt till nät
* Konvertera [[Part Workbench/sv|Del]] objekt till nät
* Analysera kurvatur, ytor, och kontrollera om ett nät kan konverteras till en solid på ett säkert sätt
* Analysera kurvatur, ytor, och kontrollera om ett nät kan konverteras till en solid på ett säkert sätt
* Vända nät [http://sv.wikipedia.org/wiki/normalvektor normaler]
* Vända nät [http://sv.wikipedia.org/wiki/normalvektor normaler]
Line 38: Line 48:
</div>
</div>


* [[Image:Mesh_Import.svg|32px]] [[Mesh_Import|Import mesh...]]: Imports a mesh object from a file.
=== General tools ===
* [[Image:Mesh_ImportMesh.png|32px]] [[Mesh Import|Import Mesh]]: Import meshes in several file formats
* [[Image:Mesh_ExportMesh.png|32px]] [[Mesh Export|Export Mesh]]: Export meshes in several file formats
* [[Image:Mesh MeshFromShape.png|32px]] [[Mesh MeshFromShape|Create Mesh from shape]]: Convert [[Part Module|Part]] objects into meshes
* [[Image:Mesh_CurvaturePlot.png|32px]] [[Mesh CurvaturePlot|Curvature Plot]]: Creates a curvature plot
* [[Image:Mesh HarmonizeNormals.png|32px]] [[Mesh HarmonizeNormals|Harmonize Normals]]: Harmonize normals
* [[Image:Mesh_FlipNormals.png|32px]] [[Mesh FlipNormals|Flip Normals]]: Flip [http://en.wikipedia.org/wiki/Surface_normal normals]
* [[Mesh FillHoles|Fill Holes...]]: Fill up holes
* [[Image:Mesh_FillInteractiveHole.png|32px]] [[Mesh FillInteractiveHole|Close hole]]: Close holes in meshes
* [[Mesh AddTriangle|Add triangle]]: Add triangle
* [[Image:Mesh_RemoveComponents.png|32px]] [[Mesh RemoveComponents|Remove components...]]: Remove components of meshes
* [[Mesh RemoveCompByHand|Remove components by hand...]]: Remove components of meshes by hand
* [[Mesh CreateMeshSegment|Create mesh segments...]]: Creates mesh segments
* [[Mesh Smooth|Smooth...]]: Smooth mesh
* [[Mesh Scale|Scale]]


* [[Image:Mesh_Export.svg|32px]] [[Mesh_Export|Export mesh...]]: Exports a mesh object to a file.
=== Analyze ===
Analysis of 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 EvaluateFacet.png|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


* [[Image:Mesh_FromPartShape.svg|32px]] [[Mesh_FromPartShape|Create mesh from shape...]]: Creates mesh objects from shape objects.
=== Regular solid ===
[[Image:Mesh_Regular_Solid.png|32px]] [[Mesh BuildRegularSolid|Regular solid...]] Create mesh primitives, like cubes, cylinders, cones, or spheres:
* [[Image:Mesh_Cube.png|32px]] [[Mesh_Cube|Mesh Cube]] Create a mesh cube
* [[Image:Mesh_Cylinder.png|32px]] [[Mesh_Cylinder|Mesh Cylinder]] Create a mesh cylinder
* [[Image:Mesh_Cone.png|32px]] [[Mesh_Cone|Mesh Cone]] Create a mesh cone
* [[Image:Mesh_Sphere.png|32px]] [[Mesh_Sphere|Mesh Sphere]] Create a mesh sphere
* [[Image:Mesh_Ellipsoid.png|32px]] [[Mesh_Ellipsoid|Mesh Ellipsoid]] Create a mesh ellipsoid
* [[Image:Mesh_Torus.png|32px]] [[Mesh_Torus|Mesh Torus]] Create a mesh torus


* [[Image:Mesh_RemeshGmsh.svg|32px]] [[Mesh_RemeshGmsh|Refinement...]]: Remeshes a mesh object.
=== Boolean ===
* [[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


* Analyze
=== Cutting ===
* [[Image:Mesh_PolyCut.png|32px]] [[Mesh_PolyCut|Mesh PolyCut]]: Cut meshes along a line
** [[Image:Mesh_Evaluation.svg|32px]] [[Mesh_Evaluation|Evaluate and repair mesh...]]: Evaluates and repairs a mesh object.
** [[Image:Mesh_EvaluateFacet.svg|32px]] [[Mesh_EvaluateFacet|Face info]]: Shows information about faces of mesh objects.
* [[Mesh TrimMesh|Trim mesh]]: Trims meshes
** [[Image:Mesh_CurvatureInfo.svg|32px]] [[Mesh_CurvatureInfo|Curvature info]]: Shows the absolute curvature of [[Mesh_VertexCurvature|curvature objects]] at selected points.
* [[Mesh TrimMeshWithPlane|Trim mesh with a plane]]: Trims meshes with a plane
** [[Image:Mesh_EvaluateSolid.svg|32px]] [[Mesh_EvaluateSolid|Check solid mesh]]: Checks if a mesh object is solid.
* Create section from mesh and plane
** [[Image:Mesh_BoundingBox.svg|32px]] [[Mesh_BoundingBox|Boundings info...]]: Shows the bounding box coordinates of a mesh object.


* [[Image:Mesh_VertexCurvature.svg|32px]] [[Mesh_VertexCurvature|Curvature plot]]: Creates Mesh Curvature objects for mesh objects.
=== Other ===
* [[Mesh Merge|Merge]]: Merges meshes
* [[Mesh SelectMesh|Select Mesh]]: Selects meshes
* [[Mesh SplitMesh|Split Mesh]]: Splits meshes
* [[Image:Mesh MakeSegment.png|32px]] [[Mesh MakeSegment|Make segment]]: Makes a segment


* [[Image:Mesh_HarmonizeNormals.svg|32px]] [[Mesh_HarmonizeNormals|Harmonize normals]]: Harmonizes the normals of mesh objects.
== Preferences ==
* [[Image:Preferences-import-export.svg|32px]] [[Import_Export_Preference|Preference]] Import-Export


* [[Image:Mesh_FlipNormals.svg|32px]] [[Mesh_FlipNormals|Flip normals]]: Flips the normals of mesh objects.
<div class="mw-translate-fuzzy">
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 [[Mesh Scripting/sv| skript]].
</div>


* [[Image:Mesh_FillupHoles.svg|32px]] [[Mesh_FillupHoles|Fill holes...]]: Fills holes in mesh objects.
Meshes can also be handled by [[Mesh Scripting|Mesh Scripting]].


* [[Image:Mesh_FillInteractiveHole.svg|32px]] [[Mesh_FillInteractiveHole|Close hole]]: Fills selected holes in mesh objects.
==Links==


* [[Image:Mesh_AddFacet.svg|32px]] [[Mesh_AddFacet|Add triangle]]: Adds faces along a boundary of an open mesh object.
* [[FreeCAD and Mesh Import|FreeCAD and Mesh Import]]


* [[Image:Mesh_RemoveComponents.svg|32px]] [[Mesh_RemoveComponents|Remove components...]]: Removes faces from mesh objects.
<div class="mw-translate-fuzzy">
{{docnav/sv|Workbenches/sv|Part Module/sv}}
</div>


* [[Image:Mesh_RemoveCompByHand.svg|32px]] [[Mesh_RemoveCompByHand|Remove components by hand...]]: Removes components from mesh objects.
{{Mesh Tools navi}}


* [[Image:Mesh_Segmentation.svg|32px]] [[Mesh_Segmentation|Create mesh segments...]]: Creates separate mesh segments for specified surface types of a mesh object.
{{Userdocnavi}}

* [[Image:Mesh_SegmentationBestFit.svg|32px]] [[Mesh_SegmentationBestFit|Create mesh segments from best-fit surfaces...]]: Creates separate mesh segments for specified surface types of a mesh object, and can identify their parameters.

* [[Image:Mesh_Smoothing.svg|32px]] [[Mesh_Smoothing|Smooth...]]: Smooths mesh objects.

* [[Image:Mesh_Decimating.svg|32px]] [[Mesh_Decimating|Decimation...]]: Reduces the number of faces in mesh objects.

* [[Image:Mesh_Scale.svg|32px]] [[Mesh_Scale|Scale...]]: Scales mesh objects.

* [[Image:Mesh_BuildRegularSolid.svg|32px]] [[Mesh_BuildRegularSolid|Regular solid...]]: Creates a regular parametric solid mesh object.

* Boolean
** [[Image:Mesh_Union.svg|32px]] [[Mesh_Union|Union]]: Creates a mesh object that is the union of two mesh objects.
** [[Image:Mesh_Intersection.svg|32px]] [[Mesh_Intersection|Intersection]]: Creates a mesh object that is the intersection of two mesh objects.
** [[Image:Mesh_Difference.svg|32px]] [[Mesh_Difference|Difference]]: Creates a mesh object that is the difference of two mesh objects.

* Cutting
** [[Image:Mesh_PolyCut.svg|32px]] [[Mesh_PolyCut|Cut mesh]]: Cuts whole faces from mesh objects.
** [[Image:Mesh_PolyTrim.svg|32px]] [[Mesh_PolyTrim|Trim mesh]]: Trims faces and parts of faces from mesh objects.
** [[Image:Mesh_TrimByPlane.svg|32px]] [[Mesh_TrimByPlane|Trim mesh with a plane]]: Trims faces and parts of faces on one side of a plane from a mesh object.
** [[Image:Mesh_SectionByPlane.svg|32px]] [[Mesh_SectionByPlane|Create section from mesh and plane]]: Creates a cross section across a mesh object.
** [[Image:Mesh_CrossSections.svg|32px]] [[Mesh_CrossSections|Cross-sections...]]: Creates multiple cross sections across mesh objects.

* [[Image:Mesh_Merge.svg|32px]] [[Mesh_Merge|Merge]]: Creates a mesh object by combining the meshes of two or more mesh objects.

* [[Image:Mesh_SplitComponents.svg|32px]] [[Mesh_SplitComponents|Split by components]]: Splits a mesh object into its components.

* [[Image:MeshPart_CreateFlatMesh.svg|32px]] [[MeshPart_CreateFlatMesh|Unwrap mesh]]: Creates a flat representation of a mesh object.

* [[Image:MeshPart_CreateFlatFace.svg|32px]] [[MeshPart_CreateFlatFace|Unwrap face]]: Creates a flat representation of a face of a shape object.

==Preferences==

There are some [[Import_Export_Preferences#Mesh_Formats|export preferences related to Mesh Formats]] but these are not used by commands belonging to this workbench. They are used by the [[Std_Export|Std Export]] command.

Mesh Workbench preferences can be found in the following categories of the [[Preferences_Editor|Preferences Editor]]:
* [[Image:Preferences-display.svg|32px]] [[Preferences_Editor#Display|Display]]: On the [[Preferences_Editor#Mesh_view|Mesh view]] tab several preferences can be set.
* [[Image:Preferences-openscad.svg|32px]] [[OpenSCAD_Preferences|OpenSCAD]]: The [[Mesh_Union|Mesh Union]], [[Mesh_Intersection|Mesh Intersection]] and [[Mesh_Difference|Mesh Difference]] commands require [http://www.openscad.org/ OpenSCAD] and use the '''OpenSCAD executable''' preference to find its executable.

==Notes==

* More mesh tools are available in the [[Image:Workbench_OpenSCAD.svg|24px]] [[OpenSCAD_Workbench|OpenSCAD Workbench]].
* See [[Mesh_Scripting|Mesh Scripting]] to manipulate and create meshes using [[Python|Python]].
* See also [[FreeCAD_and_Mesh_Import|FreeCAD and Mesh Import]]
* See [[Asymptote|Asymptote]] to export meshes to the Asymptote format.


<div class="mw-translate-fuzzy">
{{docnav/sv|Workbenches/sv|Part Workbench/sv}}
</div>


{{Mesh Tools navi{{#translation:}}}}
[[Category:Mesh]]
{{Userdocnavi{{#translation:}}}}
[[Category:Workbenches]]
[[Category:Workbenches{{#translation:}}]]

Latest revision as of 13:17, 26 November 2023

Mesh workbench icon

Introduction

Nät arbetsbänken hanterar triangelnät. Nät är en speciell typ av 3D objekt, sammansatt av trianglar som är ihopkopplade via deras kanter och hörn.

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.

Använda nätmodulen

Nätmodulen har för närvarande ett mycket enkelt gränssnitt, alla dess funktioner är grupperade i Nät menyn. De viktigaste operationerna som du för närvarande kan göra med nät är:

  • Importera nät i flera filformat
  • Exportera nät i flera filformat
  • Konvertera Del objekt till nät
  • Analysera kurvatur, ytor, och kontrollera om ett nät kan konverteras till en solid på ett säkert sätt
  • Vända nät normaler
  • Stänga hål i nät
  • Ta bort ytor i nät
  • Förena, subtrahera och skära nät
  • Skapa nätprimitiver, som kuber, sfärer, Koner eller cylindrar
  • Klippa nät längs en linje
  • Close hole: Fills selected holes in mesh objects.
  • Add triangle: Adds faces along a boundary of an open mesh object.
  • Boolean
    • Union: Creates a mesh object that is the union of two mesh objects.
    • Intersection: Creates a mesh object that is the intersection of two mesh objects.
    • Difference: Creates a mesh object that is the difference of two mesh objects.
  • Merge: Creates a mesh object by combining the meshes of two or more mesh objects.
  • Unwrap mesh: Creates a flat representation of a mesh object.
  • Unwrap face: Creates a flat representation of a face of a shape object.

Preferences

There are some export preferences related to Mesh Formats but these are not used by commands belonging to this workbench. They are used by the Std Export command.

Mesh Workbench preferences can be found in the following categories of the Preferences Editor:

Notes


Workbenches/sv
Part Workbench/sv