Arch MeshToShape/it: Difference between revisions
Renatorivo (talk | contribs) No edit summary |
(Updating to match new version of source page) |
||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
{{docnav|[[Arch_SplitMesh|Split Mesh]]|[[Arch_SelectNonSolidMeshes|Select non-solid meshes]]|[[Arch_Module|Arch]]}} |
|||
<div class="mw-translate-fuzzy"> |
|||
{{GuiCommand/it|Name=Arch MeshToShape|Name/it=Da Mesh a Forma|Workbenches=[[Arch Module/it|Architettura]]|MenuLocation=Arch → Utilità → Da Mesh a Forma|SeeAlso=[[Arch RemoveShape/it|Rimuovi Forma]]}} |
{{GuiCommand/it|Name=Arch MeshToShape|Name/it=Da Mesh a Forma|Workbenches=[[Arch Module/it|Architettura]]|MenuLocation=Arch → Utilità → Da Mesh a Forma|SeeAlso=[[Arch RemoveShape/it|Rimuovi Forma]]}} |
||
</div> |
|||
==Descrizione== |
==Descrizione== |
||
Line 8: | Line 12: | ||
== Utilizzo == |
== Utilizzo == |
||
<div class="mw-translate-fuzzy"> |
|||
# Selezionare un oggetto mesh |
# Selezionare un oggetto mesh |
||
# Selezionare la voce {{KEY/it|[[Image:Arch MeshToShape.png|16px]] Da Mesh a Forma}} nel menu Architettura → Utilità |
# Selezionare la voce {{KEY/it|[[Image:Arch MeshToShape.png|16px]] Da Mesh a Forma}} nel menu Architettura → Utilità |
||
</div> |
|||
<div class="mw-translate-fuzzy"> |
|||
== Script == |
== Script == |
||
</div> |
|||
<div class="mw-translate-fuzzy"> |
|||
Questo strumento può essere utilizzato nelle [[macros/it|macro]] e dalla console python utilizzando la seguente funzione: |
Questo strumento può essere utilizzato nelle [[macros/it|macro]] e dalla console python utilizzando la seguente funzione: |
||
</div> |
|||
{{Code|code= |
{{Code|code= |
||
new_obj = meshToShape(obj, mark=True, fast=True, tol=0.001, flat=False, cut=True) |
|||
meshToShape (object,[mark]) |
|||
}} |
}} |
||
<div class="mw-translate-fuzzy"> |
|||
:Trasforma un oggetto maglia in una forma, unendo le sfaccettature complanari. |
:Trasforma un oggetto maglia in una forma, unendo le sfaccettature complanari. |
||
</div> |
|||
{{Code|code= |
|||
:Se mark è True (impostazione predefinita), gli oggetti non solidi sono visualizzati in rosso. |
|||
import Arch, Mesh, BuildRegularGeoms |
|||
Box = FreeCAD.ActiveDocument.addObject("Mesh::Cube", "Cube") |
|||
Box.Length = 1000 |
|||
Box.Width = 2000 |
|||
Box.Height = 1000 |
|||
FreeCAD.ActiveDocument.recompute() |
|||
new_obj = Arch.meshToShape(Box) |
|||
}} |
|||
{{docnav|[[Arch_SplitMesh|Split Mesh]]|[[Arch_SelectNonSolidMeshes|Select non-solid meshes]]|[[Arch_Module|Arch]]}} |
|||
<div class="mw-translate-fuzzy"> |
|||
[[Category:Arch/it]] |
[[Category:Arch/it]] |
||
</div> |
Revision as of 13:02, 5 February 2019
Da Mesh a Forma |
Posizione nel menu |
---|
Arch → Utilità → Da Mesh a Forma |
Ambiente |
Architettura |
Avvio veloce |
Nessuno |
Introdotto nella versione |
- |
Vedere anche |
Rimuovi Forma |
Descrizione
Questo strumento converte un oggetto Mesh selezionato in un oggetto Forma. Notare che questo strumento è ottimizzato per oggetti con facce piane (senza curve). Lo strumento corrispondente dell'ambiente Parte può essere più adatto per gli oggetti che contengono superfici curve.
Utilizzo
- Selezionare un oggetto mesh
- Selezionare la voce Template:KEY/it nel menu Architettura → Utilità
Script
Questo strumento può essere utilizzato nelle macro e dalla console python utilizzando la seguente funzione:
new_obj = meshToShape(obj, mark=True, fast=True, tol=0.001, flat=False, cut=True)
- Trasforma un oggetto maglia in una forma, unendo le sfaccettature complanari.
import Arch, Mesh, BuildRegularGeoms
Box = FreeCAD.ActiveDocument.addObject("Mesh::Cube", "Cube")
Box.Length = 1000
Box.Width = 2000
Box.Height = 1000
FreeCAD.ActiveDocument.recompute()
new_obj = Arch.meshToShape(Box)