Mesh: Mesh da forma
Mesh da forma |
Posizione nel menu |
---|
Mesh → Crea Mesh da una forma... |
Ambiente |
Mesh |
Avvio veloce |
Nessuno |
Introdotto nella versione |
- |
Vedere anche |
Nessuno |
Introduzione
Questo comando crea un oggetto mesh da un oggetto forma
Uso
- Selezionare l'oggetto forma.
- Scegliere Mesh → Crea Mesh da una forma... dal menu principale.
- Un menu chiede di indicare quale mesher si vuole usare e di definire i valori appropriati per il mesher
Se si seleziona subito Mesh → Crea Mesh da una forma..., prima di selezionare una forma, si apre un ulteriore menu per scegliere la forma da trasformare in mesh
Script
Note
- Tutorial: Esportare in STL o OBJ
Deviazione della superficie: Se questo numero è più piccolo la maglia della griglia diventa più fine. Il valore minimo è 0,001.
Lunghezza massima dello spigolo: Se questo numero è più piccolo la maglia della griglia diventa più fine. Il valore minimo è 0,000.
È possibile scegliere la finezza di mesh tra:
- Molto grossa
- Grossa
- Moderata
- Fine
- Molto fine
- Definita dall'utente
Per la Mesh "definita dall'utente" si possono impostare i seguenti parametri:
- Classe della dimensione mesh: Se il valore di questo parametro diminuisce, la maglia diventa più fine. Un valore nell'intervallo tra 0.1-10.
- Elementi per spigolo: Se il valore di questo parametro cresce, la maglia diventa più fine. Un valore nell'intervallo tra 0.1-10.
- Numero di elementi per il raggio di curvatura : Se il valore di questo parametro cresce, la maglia diventa più fine. Un valore nell'intervallo tra 0.1-10.
Per ogni opzione principale è anche possibile scegliere:
- Ottimizza superficie: Per ottimizzare la superficie della forma.
- Elementi di secondo ordine: Per generare gli elementi di secondo ordine.
- Dominato da quadrangoli: Per disporre le maglie come esaedri.
Mesher Standard
Mesher Mefisto
Mesher Netgen
Questo strumento può essere utilizzato nelle macro e dalla console Python tramite la seguente funzione:
Esempio:
For every Fineness you can also choose:
- Optimize surface: Whether an optimization of surface shape will be done.
- Second order elements: Whether second order elements will be generated.
- Quad dominated: Whether meshes will be arranged preferably using quadrilateral faces.
Scripting
This tool can be used in macros and from the Python console by using the following function:
MeshPart.meshFromShape(Shape=Shape, MaxLength=520)
Example:
import FreeCAD, Draft, Arch, Mesh, MeshPart
Line = Draft.makeWire([FreeCAD.Vector(0, 0, 0),FreeCAD.Vector(2000, 2000, 0)])
Wall = Arch.makeWall(Line, width=150, height=3000)
FreeCAD.ActiveDocument.recompute()
Shape = Wall.Shape.copy(False)
Shape.Placement = Wall.getGlobalPlacement()
mesh_obj = FreeCAD.ActiveDocument.addObject("Mesh::Feature", "Mesh")
mesh_obj.Mesh = MeshPart.meshFromShape(Shape=Shape, MaxLength=520)
mesh_obj.ViewObject.DisplayMode = "Flat Lines"
Notes
- Tutorial: Export_to_STL_or_OBJ
- Miscellaneous: Import mesh, Export mesh, Create mesh from shape, Regular solid, Unwrap Mesh, Unwrap Face
- Modifying: Harmonize normals, Flip normals, Fill holes, Close hole, Add triangle, Remove components, Remove components by hand, Smooth, Refinement, Decimation, Scale
- Boolean: Union, Intersection, Difference
- Cutting: Cut mesh, Trim mesh, Trim mesh with a plane, Create section from mesh and plane, Cross-sections
- Components and segments: Merge, Split by components, Create mesh segments, Create mesh segments from best-fit surfaces
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub