Part ShapeFromMesh/ro: Difference between revisions
(Created page with "==Limitări== There will be no analyzing or validating of the mesh object. <br /> Analyzing and repairing of the mesh (if needed) should be done manually before conversion. <b...") |
(Updating to match new version of source page) |
||
(18 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
{{GuiCommand|Name=Part ShapeFromMesh|MenuLocation=Part → Create shape from mesh...|Workbenches=[[Part Workbench|Part]]|SeeAlso=[[Part ConvertToSolid]], [[Part RefineShape]]}} |
|||
{{Docnav |
|||
|[[Part_BoxSelection|BoxSelection]] |
|||
|[[Part_PointsFromMesh|PointsFromMesh]] |
|||
|[[Part_Workbench|Part]] |
|||
|IconL=Part_BoxSelection.svg |
|||
|IconR=Part_PointsFromMesh.svg |
|||
|IconC=Workbench_Part.svg |
|||
}} |
|||
{{GuiCommand/ro |
|||
|Name=Part ShapeFromMesh |
|||
|Name/ro=Part ShapeFromMesh |
|||
|MenuLocation=Part → Create shape from mesh... |
|||
|Workbenches=[[Part_Workbench/ro|Part]] |
|||
|SeeAlso=[[Part_MakeSolid/ro|Part ConvertToSolid]], [[Part_RefineShape/ro|Part RefineShape]], [[Part_PointsFromMesh/ro|Part PointsFromMesh]] |
|||
}} |
|||
==Introduction== |
==Introduction== |
||
This command creates a shape from a [[Glossary#Mesh|mesh object]]. Mesh objects have limited editing capabilities in FreeCAD, converting them to shapes will allow their use with many more tools in FreeCAD (also see [[#Notes|Notes]]). |
|||
<div class="mw-translate-fuzzy"> |
|||
==Introducere== |
|||
Această comandă creează o formă dintr-un [[Glossary#Mesh|mesh object]] . Obiectele din rețea au capacități de editare limitate în FreeCAD, transformându-le în forme, permit utilizarea lor cu multe alte instrumente în FreeCAD (vezi și [[#Notes | Notes]]). |
|||
</div> |
|||
The inverse operation is {{Button|[[File:Mesh_FromPartShape.svg|16px]] [[Mesh_FromPartShape|Mesh FromPartShape]]}} from the [[File:Workbench_Mesh.svg|24px]] [[Mesh_Workbench|Mesh Workbench]]. |
|||
⚫ | |||
<div class="mw-translate-fuzzy"> |
|||
==Utilizare== |
==Utilizare== |
||
# Selectați obeictul tip plasă. |
|||
# Select the mesh object. |
|||
# Choose {{KEY| Part}} → {{KEY|[[Image:Part_ShapeFromMesh.png|32px]] Create shape from mesh ...}} from the top menu. |
# Choose {{KEY| Part}} → {{KEY|[[Image:Part_ShapeFromMesh.png|32px]] Create shape from mesh ...}} from the top menu. |
||
# A popup-menu will ask for the tolerance for sewing shape (default value: 0,1) |
# A popup-menu will ask for the tolerance for sewing shape (default value: 0,1) |
||
# A shape from the mesh object is created as a seperate new object. |
# A shape from the mesh object is created as a seperate new object. |
||
</div> |
|||
== Links == |
|||
* [https://www.youtube.com/watch?v=5lwENZeNiNg&feature=youtu.be Edit STL Files In FreeCAD] video by AllVisuals4U. |
|||
==Scripting== |
|||
Creating a [[Shape|Shape]] from a [[Mesh|Mesh]] can be done by using the {{incode|makeShapeFromMesh}} method from a [[Part_TopoShape|Part TopoShape]]; you need to specify the source mesh and tolerance, and assign the result to a new [[Part_Feature|Part Feature]] object. |
|||
Notice that the mesh must be recalculated before it is converted to a Shape, otherwise there won't be topology information, and the conversion won't be successful. |
|||
{{Code|code= |
|||
import FreeCAD as App |
|||
import Part |
|||
doc = App.newDocument() |
|||
==Limitări== |
|||
mesh = doc.addObject("Mesh::Cube", "Mesh") |
|||
There will be no analyzing or validating of the mesh object. |
|||
mesh.recompute() |
|||
<br /> |
|||
Analyzing and repairing of the mesh (if needed) should be done manually before conversion. |
|||
<br /> |
|||
Appropriate tools are available in the [[Mesh Workbench]]. |
|||
solid = doc.addObject("Part::Feature", "Shape") |
|||
⚫ | |||
shape = Part.Shape() |
|||
After creation of a shape, it may be useful to use [[Part ConvertToSolid|Convert to solid]] (necessary for [[Glossary#Boolean Operation|Boolean operations]]) and [[Part RefineShape|Refine shape]] tools. |
|||
shape.makeShapeFromMesh(mesh.Mesh.Topology, 0.1) |
|||
solid.Shape = shape |
|||
solid.Placement.Base = App.Vector(15, 0, 0) |
|||
solid.purgeTouched() |
|||
doc.recompute() |
|||
}} |
|||
{{Docnav |
|||
|[[Part_BoxSelection|BoxSelection]] |
|||
|[[Part_PointsFromMesh|PointsFromMesh]] |
|||
|[[Part_Workbench|Part]] |
|||
|IconL=Part_BoxSelection.svg |
|||
|IconR=Part_PointsFromMesh.svg |
|||
|IconC=Workbench_Part.svg |
|||
}} |
|||
{{Part Tools navi{{#translation:}}}} |
|||
{{Userdocnavi{{#translation:}}}} |
|||
{{clear}} |
{{clear}} |
Latest revision as of 12:46, 30 January 2024
Part ShapeFromMesh |
poziția meniului |
---|
Part → Create shape from mesh... |
Ateliere |
Part |
scurtătură |
nici unul |
Prezentat în versiune |
- |
A se vedea, de asemenea, |
Part ConvertToSolid, Part RefineShape, Part PointsFromMesh |
Introduction
Introducere
Această comandă creează o formă dintr-un mesh object . Obiectele din rețea au capacități de editare limitate în FreeCAD, transformându-le în forme, permit utilizarea lor cu multe alte instrumente în FreeCAD (vezi și Notes).
The inverse operation is Mesh FromPartShape from the Mesh Workbench.
Usage
Utilizare
Links
- Edit STL Files In FreeCAD video by AllVisuals4U.
Scripting
Creating a Shape from a Mesh can be done by using the makeShapeFromMesh
method from a Part TopoShape; you need to specify the source mesh and tolerance, and assign the result to a new Part Feature object.
Notice that the mesh must be recalculated before it is converted to a Shape, otherwise there won't be topology information, and the conversion won't be successful.
import FreeCAD as App
import Part
doc = App.newDocument()
mesh = doc.addObject("Mesh::Cube", "Mesh")
mesh.recompute()
solid = doc.addObject("Part::Feature", "Shape")
shape = Part.Shape()
shape.makeShapeFromMesh(mesh.Mesh.Topology, 0.1)
solid.Shape = shape
solid.Placement.Base = App.Vector(15, 0, 0)
solid.purgeTouched()
doc.recompute()
Part
- Primitives: Box, Cylinder, Sphere, Cone, Torus, Tube, Create primitives, Shape builder
- Creation and modification: Extrude, Revolve, Mirror, Fillet, Chamfer, Make face from wires, Ruled Surface, Loft, Sweep, Section, Cross sections, 3D Offset, 2D Offset, Thickness, Projection on surface, Attachment
- Boolean: Make compound, Explode Compound, Compound Filter, Boolean, Cut, Fuse, Common, Connect, Embed, Cutout, Boolean fragments, Slice apart, Slice, XOR
- Measure: Measure Linear, Measure Angular, Measure Refresh, Clear All, Toggle All, Toggle 3D, Toggle Delta
User documentation
- 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