Arch SplitMesh/ro: Difference between revisions
Renatorivo (talk | contribs) (Created page with "Category:Arch/ro") |
(Updating to match new version of source page) |
||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
{{docnav|[[Arch_CloneComponent|Clone component]]|[[Arch_MeshToShape|Mesh To Shape]]|[[Arch_Module|Arch]]}} |
|||
<div class="mw-translate-fuzzy"> |
|||
{{GuiCommand|Name=Arch SplitMesh|Workbenches=[[Arch Module|Arch]]|MenuLocation=Arch → Utilities → Split Mesh|SeeAlso=[[Arch SelectNonSolidMeshes]]}} |
{{GuiCommand|Name=Arch SplitMesh|Workbenches=[[Arch Module|Arch]]|MenuLocation=Arch → Utilities → Split Mesh|SeeAlso=[[Arch SelectNonSolidMeshes]]}} |
||
</div> |
|||
==Descriere== |
==Descriere== |
||
Line 8: | Line 12: | ||
== Cum se folosește == |
== Cum se folosește == |
||
<div class="mw-translate-fuzzy"> |
|||
# Selectați un obiect tip plasă |
# Selectați un obiect tip plasă |
||
# Apăsați {{KEY|[[Image:Arch SplitMesh.png|16px]] '''Split Mesh'''}} entry in Arch -> Utilities menu |
# Apăsați {{KEY|[[Image:Arch SplitMesh.png|16px]] '''Split Mesh'''}} entry in Arch -> Utilities menu |
||
</div> |
|||
<div class="mw-translate-fuzzy"> |
|||
== Scrip-Programare == |
== Scrip-Programare == |
||
</div> |
|||
<div class="mw-translate-fuzzy"> |
|||
Instrumentul Split Mesh poate fi utilizat în [[macros]] și din consola python utilizând următoarea funcție: |
Instrumentul Split Mesh poate fi utilizat în [[macros]] și din consola python utilizând următoarea funcție: |
||
</div> |
|||
{{Code|code= |
{{Code|code= |
||
new_list = splitMesh(obj, mark=True) |
|||
splitMesh (object,[mark]) |
|||
}} |
}} |
||
<div class="mw-translate-fuzzy"> |
|||
împarte obiectul tip plasă dat în componente separate. |
împarte obiectul tip plasă dat în componente separate. |
||
</div> |
|||
Example: |
|||
Dacă marcajul este Fals, nu se mai face altceva. Dacă marcajul este True (implicit), obiectele non printabile (non [http://en.wikipedia.org/wiki/Manifold manifold]) vor fi vopsite în roșu. |
|||
{{Code|code= |
|||
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" |
|||
new_list = Arch.splitMesh(mesh_obj) |
|||
}} |
|||
{{docnav|[[Arch_CloneComponent|Clone component]]|[[Arch_MeshToShape|Mesh To Shape]]|[[Arch_Module|Arch]]}} |
|||
<div class="mw-translate-fuzzy"> |
|||
[[Category:Arch/ro]] |
[[Category:Arch/ro]] |
||
</div> |
Revision as of 12:57, 5 February 2019
Arch SplitMesh |
Menu location |
---|
Arch → Utilities → Split Mesh |
Workbenches |
Arch |
Default shortcut |
None |
Introduced in version |
- |
See also |
Arch SelectNonSolidMeshes |
Descriere
Acest instrument împarte un obiect selectat Mesh în componentele sale separate
Cum se folosește
Scrip-Programare
Instrumentul Split Mesh poate fi utilizat în macros și din consola python utilizând următoarea funcție:
new_list = splitMesh(obj, mark=True)
împarte obiectul tip plasă dat în componente separate.
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"
new_list = Arch.splitMesh(mesh_obj)