Mesh PolyTrim/it: Difference between revisions
Renatorivo (talk | contribs) (Created page with "Mesh: Rifila con un poligono") |
No edit summary |
||
(25 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
{{Docnav |
{{Docnav/it |
||
|[[Mesh_PolyCut| |
|[[Mesh_PolyCut/it|Taglia la mesh]] |
||
|[[Mesh_TrimByPlane| |
|[[Mesh_TrimByPlane/it|Rifila con un piano]] |
||
|[[Mesh_Workbench|Mesh]] |
|[[Mesh_Workbench/it|Mesh]] |
||
|IconL=Mesh_PolyCut.svg |
|IconL=Mesh_PolyCut.svg |
||
|IconR= |
|IconR=Mesh_TrimByPlane.svg |
||
|IconC=Workbench_Mesh.svg |
|IconC=Workbench_Mesh.svg |
||
}} |
}} |
||
{{GuiCommand |
{{GuiCommand/it |
||
|Name= |
|Name=Mesh_PolyTrim |
||
|Name/it=Rifila con un poligono |
|||
|Empty=1 |
|||
|MenuLocation= |
|MenuLocation=Mesh → Taglio → Rifila con un poligono |
||
|Workbenches=[[Mesh_Workbench|Mesh]] |
|Workbenches=[[Mesh_Workbench/it|Mesh]] |
||
|SeeAlso=[[Mesh_PolyCut| |
|SeeAlso=[[Mesh_PolyCut/it|Taglia la mesh]], [[Mesh_TrimByPlane/it|Rifila con un piano]] |
||
}} |
}} |
||
= |
<span id="Description"></span> |
||
==Descrizione== |
|||
Il comando '''Rifila con un poligono''' taglia facce e parti di facce da oggetti mesh. |
|||
= |
<span id="Usage"></span> |
||
==Utilizzo== |
|||
# Durante il comando non è possibile modificare la [[3D_view/it|vista 3D]]. Si consiglia di allineare correttamente prima la vista 3D. |
|||
# During the command the [[3D_view|3D view]] cannot be changed. It is advisable to properly line up the 3d view first. |
|||
# Selezionare uno o più oggetti mesh. |
|||
# Select one or more mesh objects. |
|||
# Esistono diversi modi per invocare il comando: |
|||
# Select the {{MenuCommand|Meshes → Cutting → Trim mesh}} option from the menu. |
|||
#* Premere il bottone {{Button|[[Image:Mesh_PolyTrim.svg|16px]] [[Mesh_PolyTrim/it|Rifila con un poligono]]}}. |
|||
# Define a polygon by picking points in the 3D view. |
|||
#* Selezionare l'opzione {{MenuCommand|Mesh → Taglio → [[Image:Mesh_PolyTrim.svg|16px]] Rifila con un poligono}} dal menu. |
|||
# Select an option from the 3D view context menu: |
|||
# Definire un poligono selezionando dei punti nella vista 3D. |
|||
#* {{MenuCommand|Inner}}: removes the faces and parts of faces that are inside the polygon. |
|||
# Selezionare un'opzione dal menu contestuale della vista 3D: |
|||
#* {{MenuCommand|Outer}}: removes the faces and parts of faces that are outside the polygon. |
|||
#* {{MenuCommand|Interno}}: rimuove le facce che sono (parzialmente) all'interno del poligono. |
|||
#* {{MenuCommand|Split}}: removes the faces and parts of faces that are outside the polygon, and creates a new mesh object containing them. |
|||
#* {{MenuCommand| |
#* {{MenuCommand|Esterno}}: rimuove le facce che sono completamente al di fuori del poligono. |
||
#* {{MenuCommand|Dividi}}: rimuove le facce che sono completamente esterne al poligono e crea un nuovo oggetto mesh che le contiene. |
|||
#* {{MenuCommand|Annulla}}: annulla il comando. |
|||
<span id="Scripting"></span> |
|||
==Script== |
|||
Vedere anche: [[FreeCAD_Scripting_Basics/it|Script di base per FreeCAD]] |
|||
⚫ | |||
⚫ | |||
Per tagliare una mesh con un poligono usare il suo metodo {{incode|trim}}. |
|||
⚫ | |||
⚫ | |||
{{Code|code= |
|||
import FreeCAD as App |
|||
import Mesh |
|||
# Create a non-parametric box-shaped mesh: |
|||
msh = App.ActiveDocument.addObject("Mesh::Feature", "Mesh") |
|||
msh.Mesh = Mesh.createBox(30, 40, 50) |
|||
msh.ViewObject.DisplayMode = "Flat Lines" |
|||
# Define some points: |
|||
p1 = App.Vector(0, 0, 0) |
|||
p2 = App.Vector(60, 0, 0) |
|||
p3 = App.Vector(60, 60, 0) |
|||
# We need to work on a copy of the msh.Mesh object: |
|||
new_msh = msh.Mesh.copy() |
|||
# Trim that copy: |
|||
new_msh.trim([p1, p2, p3], 0) # 2nd argument: 0=inner, 1=outer. |
|||
# Update msh.Mesh: |
|||
msh.Mesh = new_msh |
|||
}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
|IconL=Mesh_PolyCut.svg |
|IconL=Mesh_PolyCut.svg |
||
|IconR= |
|IconR=Mesh_TrimByPlane.svg |
||
|IconC=Workbench_Mesh.svg |
|IconC=Workbench_Mesh.svg |
||
}} |
}} |
||
Line 46: | Line 81: | ||
{{Mesh Tools navi{{#translation:}}}} |
{{Mesh Tools navi{{#translation:}}}} |
||
{{Userdocnavi{{#translation:}}}} |
{{Userdocnavi{{#translation:}}}} |
||
{{clear}} |
Latest revision as of 23:48, 29 November 2023
Rifila con un poligono |
Posizione nel menu |
---|
Mesh → Taglio → Rifila con un poligono |
Ambiente |
Mesh |
Avvio veloce |
Nessuno |
Introdotto nella versione |
- |
Vedere anche |
Taglia la mesh, Rifila con un piano |
Descrizione
Il comando Rifila con un poligono taglia facce e parti di facce da oggetti mesh.
Utilizzo
- Durante il comando non è possibile modificare la vista 3D. Si consiglia di allineare correttamente prima la vista 3D.
- Selezionare uno o più oggetti mesh.
- Esistono diversi modi per invocare il comando:
- Premere il bottone Rifila con un poligono.
- Selezionare l'opzione Mesh → Taglio → Rifila con un poligono dal menu.
- Definire un poligono selezionando dei punti nella vista 3D.
- Selezionare un'opzione dal menu contestuale della vista 3D:
- Interno: rimuove le facce che sono (parzialmente) all'interno del poligono.
- Esterno: rimuove le facce che sono completamente al di fuori del poligono.
- Dividi: rimuove le facce che sono completamente esterne al poligono e crea un nuovo oggetto mesh che le contiene.
- Annulla: annulla il comando.
Script
Vedere anche: Script di base per FreeCAD
Per tagliare una mesh con un poligono usare il suo metodo trim
.
import FreeCAD as App
import Mesh
# Create a non-parametric box-shaped mesh:
msh = App.ActiveDocument.addObject("Mesh::Feature", "Mesh")
msh.Mesh = Mesh.createBox(30, 40, 50)
msh.ViewObject.DisplayMode = "Flat Lines"
# Define some points:
p1 = App.Vector(0, 0, 0)
p2 = App.Vector(60, 0, 0)
p3 = App.Vector(60, 60, 0)
# We need to work on a copy of the msh.Mesh object:
new_msh = msh.Mesh.copy()
# Trim that copy:
new_msh.trim([p1, p2, p3], 0) # 2nd argument: 0=inner, 1=outer.
# Update msh.Mesh:
msh.Mesh = new_msh
Mesh
- 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
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, Start, Surface, TechDraw, Test Framework, Web
- Hubs: User hub, Power users hub, Developer hub