Part SliceApart/de: Difference between revisions

From FreeCAD Documentation
No edit summary
(Updating to match new version of source page)
(4 intermediate revisions by one other user not shown)
Line 3: Line 3:


{{GuiCommand|Name=Part SliceApart
{{GuiCommand|Name=Part SliceApart
|MenuLocation=Part → Split → Slice Apart
|MenuLocation=Formteil → Split → Slice Apart
|Version=0.18.15506
|Version=0.18.15506
|Workbenches=[[Part Module|Part]]|SeeAlso=[[Part Slice|Part Slice to compound]], [[Part_ExplodeCompound|Part Explode Compound]]
|Workbenches=[[Part Module|Part]]|SeeAlso=[[Part Slice/de|Part Slice to compound]], [[Part_ExplodeCompound|Part Explode Compound]]
}}
}}


Line 16: Line 16:
Auf dem Bild oben wurden die Teile anschließend manuell auseinandergeschoben, um das Schneiden zu verdeutlichen.
Auf dem Bild oben wurden die Teile anschließend manuell auseinandergeschoben, um das Schneiden zu verdeutlichen.


Hinweis ː Stand 12.3.19 ist die Übersetzung im GUI noch nicht erfolgt, deswegen erwähne ich die englischen Begriffe

<div class="mw-translate-fuzzy">
[[Part SliceApart | Formteil zerschneiden]] ist dasselbe wie [[Part Slice | Formteil zu Verbund schneiden]] ( slice to compound ), gefolgt von [[Part_ExplodeCompound | Part Explode Compound]]. Während "Formteil zu Verbund schneiden" vollparametrisch ist und keine Probleme verursacht, wenn sich die Anzahl der Teile ändert, aktualisiert "Zerschneiden" nicht die Anzahl der Objekte, wenn sich die Anzahl der Teile ändert.
[[Part SliceApart | Formteil zerschneiden]] ist dasselbe wie [[Part Slice | Formteil zu Verbund schneiden]] ( slice to compound ), gefolgt von [[Part_ExplodeCompound | Part Explode Compound]]. Während "Formteil zu Verbund schneiden" vollparametrisch ist und keine Probleme verursacht, wenn sich die Anzahl der Teile ändert, aktualisiert "Zerschneiden" nicht die Anzahl der Objekte, wenn sich die Anzahl der Teile ändert.
</div>


The output shape occupies the same space as the original. But it is split where it intersects with other shapes. The split pieces are individual pieces.
Bitte besuchen Sie die Seite [[Part Slice | Part Slice]] für weitere Informationen.


Bitte besuchen Sie die Seite [[Part Slice/de | Part Slice]] für weitere Informationen.

===Tree structure of Slice Apart===
The Slice Apart command creates more than only the sliced object. In the following example a cube is sliced by a face.

The slice is created and for each piece of it there is a [[Part CompoundFilter]] created, thus the same slice occurs multiple times below each CompundFilter. All these CompoundFilters are united in a Compound.

[[Image:Part_SliceApartTree.png]]


==Example: making puzzle==
See [[Part Slice|Part Slice]] Example Steps 1 to 6


==Scripting==

The tool can by used in [[macros]] and from the python console by using the following function:
'''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:
{{code|code=
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==
==Version==
Line 27: Line 71:


{{Part Tools navi}}
{{Part Tools navi}}






{{Userdocnavi}}
{{Userdocnavi}}

Revision as of 16:19, 12 March 2019

Part SliceApart

Menu location
Formteil → Split → Slice Apart
Workbenches
Part
Default shortcut
None
Introduced in version
0.18.15506
See also
Part Slice to compound, Part Explode Compound

Beschreibung

Werkzeug zum Teilen von Formen durch Überschneidung mit anderen Formen
Für eine Box und eine Ebene werden beispielsweise zwei Körper erstellt.

Auf dem Bild oben wurden die Teile anschließend manuell auseinandergeschoben, um das Schneiden zu verdeutlichen.

Hinweis ː Stand 12.3.19 ist die Übersetzung im GUI noch nicht erfolgt, deswegen erwähne ich die englischen Begriffe

Formteil zerschneiden ist dasselbe wie Formteil zu Verbund schneiden ( slice to compound ), gefolgt von Part Explode Compound. Während "Formteil zu Verbund schneiden" vollparametrisch ist und keine Probleme verursacht, wenn sich die Anzahl der Teile ändert, aktualisiert "Zerschneiden" nicht die Anzahl der Objekte, wenn sich die Anzahl der Teile ändert.

The output shape occupies the same space as the original. But it is split where it intersects with other shapes. The split pieces are individual pieces.


Bitte besuchen Sie die Seite Part Slice für weitere Informationen.

Tree structure of Slice Apart

The Slice Apart command creates more than only the sliced object. In the following example a cube is sliced by a face.

The slice is created and for each piece of it there is a Part CompoundFilter created, thus the same slice occurs multiple times below each CompundFilter. All these CompoundFilters are united in a Compound.


Example: making puzzle

See Part Slice Example Steps 1 to 6


Scripting

The tool can by used in macros and from the python console by using the following function:

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 wurde in FreeCAD v0.18.15506 eingeführt. FreeCAD muss mit OCC 6.9.0 oder höher kompiliert werden. Andernfalls ist das Tool nicht verfügbar.