Part: Affetta in parti
Affetta in parti |
Posizione nel menu |
---|
Part → Dividi → Affetta in parti |
Ambiente |
Part |
Avvio veloce |
Nessuno |
Introdotto nella versione |
0.18.15506 |
Vedere anche |
Affetta in composto, Esplodi il composto |
Descrizione
Strumento per dividere le forme per intersezione con altre forme. Ad esempio, per un cubo e un piano, vengono creati due solidi.
Nella figura sopra, i pezzi sono stati separati manualmente dopo l'operazione, per rendere visibili le singole parti.
Affetta in parti è uguale a Affetta in composto seguito da Esplodi composto. Mentre "Affetta in composto" è completamente parametrico e non crea problemi mentre il numero di pezzi cambia, "Affetta in parti" non aggiorna il numero di oggetti quando il numero di pezzi cambia. Entrambi creano la funzione parametrica Slice, che mette i pezzi tagliati in un composto, ma "Affetta in parti" esplode il composto risultante in oggetti separati.
Le forme di uscita occupano lo stesso spazio dell'originale. Ma sono divise dove si intersecano con altre forme. I pezzi divisi sono pezzi individuali.
Per ulteriori informazioni, visitare la pagina Affetta in composto.
Struttura ad albero di Affetta in parti
Il comando Affetta una parte crea più di un solo oggetto affettato. Nell'esempio seguente un cubo viene affettato da una faccia.
Vengono create le fette e per ogni fetta viene creato un Filtra composto, quindi la stessa porzione è presente più volte, sotto ad ogni CompundFilter. Tutti questi CompoundFilters sono uniti in un Composto.
Esempio: creare un puzzle
Vedere Affetta in parti Esempio dei passaggi da 1 a 6
Script
Lo strumento può essere utilizzato nelle macro e dalla console Python utilizzando la seguente funzione:
BOPTools.SplitFeatures.makeSlice(name)
Set mode to split for slice apart
- Creates an empty Slice feature. The 'Base' and 'Tools' properties must be assigned explicitly, afterwards.
- Returns the newly created object.
Slice can also be applied to plain shapes, without the need to have a document object, via:
BOPTools.SplitAPI.slice(base_shape, tool_shapes, mode, tolerance = 0.0)
This can be useful for making custom Python scripted features.
Example:
import BOPTools.SplitFeatures
j = BOPTools.SplitFeatures.makeSlice(name= 'Slice')
j.Base = FreeCADGui.Selection.getSelection()[0]
j.Tools = FreeCADGui.Selection.getSelection()[1:]
The tool itself is implemented in Python, see /Mod/Part/BOPTools/SplitFeatures.py under where FreeCAD is installed.
Version
Slice Apart was introduced in FreeCAD v0.18.15506. FreeCAD needs to be compiled with OCC 6.9.0 or later; otherwise, the tool is unavailable.
- 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
- 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, Assembly, BIM, 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