Mesh TrimByPlane/it: Difference between revisions
Renatorivo (talk | contribs) (Created page with "==Descrizione==") |
(Updating to match new version of source page) |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
<div class="mw-translate-fuzzy"> |
|||
{{Docnav/it |
{{Docnav/it |
||
|[[Mesh_PolyTrim/it|Rifila con un poligono]] |
|[[Mesh_PolyTrim/it|Rifila con un poligono]] |
||
|[[Mesh_SectionByPlane/it|Sezione da mesh e piano]] |
|[[Mesh_SectionByPlane/it|Sezione da mesh e piano]] |
||
|[[Mesh_Workbench/it|Mesh]] |
|[[Mesh_Workbench/it|Mesh]] |
||
|IconL= |
|IconL=Mesh_PolyTrim.svg |
||
|IconR= |
|IconR=Mesh_SectionByPlane.svg |
||
|IconC=Workbench_Mesh.svg |
|IconC=Workbench_Mesh.svg |
||
}} |
}} |
||
</div> |
|||
{{GuiCommand/it |
{{GuiCommand/it |
||
|Name=Mesh_TrimByPlane |
|Name=Mesh_TrimByPlane |
||
|Name/it=Rifila con un piano |
|Name/it=Rifila con un piano |
||
|Empty=1 |
|||
|MenuLocation=Mesh → Taglio → Rifila con un piano |
|MenuLocation=Mesh → Taglio → Rifila con un piano |
||
|Workbenches=[[Mesh_Workbench/it|Mesh]] |
|Workbenches=[[Mesh_Workbench/it|Mesh]] |
||
Line 19: | Line 20: | ||
}} |
}} |
||
<span id="Description"></span> |
|||
==Descrizione== |
==Descrizione== |
||
Il comando '''Rifila con un piano''' taglia facce e parti di facce su un lato di un piano da un oggetto mesh. |
|||
= |
<span id="Usage"></span> |
||
==Utilizzo== |
|||
<div class="mw-translate-fuzzy"> |
|||
# Select a single mesh object and a single [[Part_Primitives|Part plane]]. The (extended) plane should intersect the mesh object. |
|||
# Selezionare un singolo oggetto mesh e un singolo [[Part_Primitives/it|piano di Part]]. Il piano (esteso) deve intersecare l'oggetto mesh. |
|||
# Select the {{MenuCommand|Meshes → Cutting → Trim mesh with a plane}} option from the menu. |
|||
# Selezionare l'opzione {{MenuCommand|Mesh → Taglio → [[Image:Mesh_TrimByPlane.svg|16px]] Rifila con un piano}} dal menu. |
|||
# The {{MenuCommand|Trim by plane}} dialog box opens. |
|||
# Si apre la finestra di dialogo {{MenuCommand|Rifila con un piano}}. |
|||
# {{MenuCommand|Select the side you want to keep}} by pressing one of the buttons: |
|||
# {{MenuCommand|Selezionare il lato da mantenere}} premendo uno dei pulsanti: |
|||
⚫ | |||
#* {{button| |
#* {{button|Sopra}} |
||
⚫ | |||
#* {{button|Split}}: removes the faces and parts of faces above the plane, and creates a new mesh object containing them. |
|||
#* {{button|Dividi}}: rimuove le facce e le parti delle facce sopra il piano e crea un nuovo oggetto mesh che le contiene. |
|||
</div> |
|||
==Scripting== |
|||
See also: [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]]. |
|||
⚫ | |||
⚫ | |||
To trim a mesh with a plane use its {{incode|trimByPlane}} method. |
|||
⚫ | |||
⚫ | |||
{{Code|code= |
|||
|IconL= |
|||
import FreeCAD as App |
|||
|IconR= |
|||
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 a plane by a base point and a normal vector: |
|||
pnt = App.Vector(25, 0, 0) |
|||
nor = App.Vector(0, 0, 1) |
|||
# We need to work on a copy of the msh.Mesh object: |
|||
new_msh = msh.Mesh.copy() |
|||
# Trim that copy: |
|||
new_msh.trimByPlane(pnt, nor) |
|||
# Update msh.Mesh: |
|||
msh.Mesh = new_msh |
|||
}} |
|||
<div class="mw-translate-fuzzy"> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
|IconL=Mesh_PolyTrim.svg |
|||
|IconR=Mesh_SectionByPlane.svg |
|||
|IconC=Workbench_Mesh.svg |
|IconC=Workbench_Mesh.svg |
||
}} |
}} |
||
</div> |
|||
{{Mesh Tools navi{{#translation:}}}} |
{{Mesh Tools navi{{#translation:}}}} |
||
{{Userdocnavi{{#translation:}}}} |
{{Userdocnavi{{#translation:}}}} |
||
{{clear}} |
Latest revision as of 14:15, 5 January 2023
Rifila con un piano |
Posizione nel menu |
---|
Mesh → Taglio → Rifila con un piano |
Ambiente |
Mesh |
Avvio veloce |
Nessuno |
Introdotto nella versione |
- |
Vedere anche |
Taglia la mesh, Rifila con un poligono |
Descrizione
Il comando Rifila con un piano taglia facce e parti di facce su un lato di un piano da un oggetto mesh.
Utilizzo
- Selezionare un singolo oggetto mesh e un singolo piano di Part. Il piano (esteso) deve intersecare l'oggetto mesh.
- Selezionare l'opzione Mesh → Taglio → Rifila con un piano dal menu.
- Si apre la finestra di dialogo Rifila con un piano.
- Selezionare il lato da mantenere premendo uno dei pulsanti:
- Sopra
- Sotto
- Dividi: rimuove le facce e le parti delle facce sopra il piano e crea un nuovo oggetto mesh che le contiene.
Scripting
See also: FreeCAD Scripting Basics.
To trim a mesh with a plane use its trimByPlane
method.
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 a plane by a base point and a normal vector:
pnt = App.Vector(25, 0, 0)
nor = App.Vector(0, 0, 1)
# We need to work on a copy of the msh.Mesh object:
new_msh = msh.Mesh.copy()
# Trim that copy:
new_msh.trimByPlane(pnt, nor)
# 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