Описание
Командата
Рязане (Part Slice) разделя фигури по пресечницата им с други фигури. Например, за паралелепипед и равнина се създава съединение от две твърди тела.
Отгоре: парчетата бяха преместени ръчно след това, за да се разкрие нарязването
Има две команди за нарязване на форма:
Рязане отделно и
Рязане до съединение. И двете създават параметрични функции "Slice", която поставя нарязаните парчета в съединение. Въпреки това,
Рязане отделно обаче разпада полученото съединение на отделни обекти. "Рязане до съединение" е напълно параметричен и не причинява проблеми, когато броят на парчетата се променя. "Рязане отделно" няма да актуализира броя на обектите, когато броят на парчетата се променя.
Изходната форма заема същото пространство като оригинала, но е разделена там, където се пресича с други форми. Разделените парчета се поставят в съединение (или compsolid), така че обектът изглежда остава в едно парче. Трябва да разпаднете съединението, за да получите отделните парчета. Ако искате да получите достъп до отделните парчета по параметричен начин, можете да използвате
Филтър на съединение за тази цел. За бързо непараметрично използване на достъп
Draft Downgrade.
Командата има три режима: "Standard", "Split" и "CompSolid". Няма формуляр за избор, те са предварително дефинирани, но могат да бъдат достъпни след операцията на нивото на получените филии.
"Standard" и "Split" се различават по действието на командата върху линии, черупки и compsolids: при "Split", те са разделени; при "Standard", те се държат заедно (получават допълнителни сегменти).
Структура съединение в режими "Standard" и "Split" следва структурата на съединение на формата, която се нарязва.
В режим "CompSolid" изходът е compsolid (или съединение от compsolid, ако получените твърди тела образуват повече от един остров на свързаност). Compsolid е набор от твърди тела, свързани с лица; те са свързани с твърди тела както мрежите от линии са свързани от ръбове, а черупките са свързани от лица; името вероятно е съкратена фраза "композитно твърдо тяло".
Цялостното действие на командата е много подобно на
Part Boolean Fragments, освен само че парчетата от първата форма са в резултата.
Usage
- Select the object to be sliced, first, and then some objects to slice with.
The order of selection is important. Compounds with self-intersections are not allowed (self-intersections sometimes can be accounted for by passing the compound through
Part Boolean Fragments).
- There are several ways to invoke the command:
- Press the
Slice to Compound button.
- Select the Part → Split →
Slice to Compound option from the menu.
- A parametric Slice object is created. Original objects are hidden, and the result of intersection is shown in 3D View.
Tree structure of Slice
The Slice command creates a sliced object. In the following example a cube is sliced by a face.
The slice is created and each piece of it is united in a Compound.
Properties
Slice
- ДанниBase: Object to be sliced.
- ДанниTools: List of objects to slice with.
- ДанниMode: "Standard", "Split", or "CompSolid". "Split" is default. Standard and Split differ by the action of the command on aggregation type shapes: if Split, those are separated; otherwise they are kept together (get extra segments).
- ДанниTolerance: "fuzziness" value. This is an extra tolerance to apply when searching for intersections, in addition to tolerances stored in the input shapes.
Example
Creating a Puzzle
- Switch to
Sketcher Workbench
- Create a new sketch.
- Draw a rectangle that will outline the overall shape of the puzzle.
- Close the sketch.

- Switch to
Part workbench.
- Switch back to
Sketcher Workbench
- Create another sketch on the same plane.
- Using polyline command, draw the lines that will split the puzzle into pieces.

- Switch back to
Part Workbench.
- Select the splitter sketch, and apply
Part Boolean Fragments. This will insert vertices where lines of splitter sketch intersect. Having them is essential for the next step to work.

- Select the rectangular face, and the BooleanFragments of splitter sketch, and apply
Part Slice.

- Use
Part ExplodeCompound on the sliced face, to break apart the compound made by Part Slice into individual pieces.
Note: Steps 5 and 6 can be done in single click using
Part SliceApart
Notes
- Properties are accessible on the slices inner object, not on the result level.
- The Objects to slice with must completely separate the object to be sliced. Thus a cube cannot be sliced by a wire, but by a plane derived from an extruded wire for instance.
- Slicing object must pass Boolean Operations check. See
Part CheckGeometry.
Scripting
The command can by used in macros and from the Python Console by using the following function:
BOPTools.SplitFeatures.makeSlice(name)
- 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 command itself is implemented in Python, see /Mod/Part/BOPTools/SplitFeatures.py (GitHub link) within the FreeCAD installation directory.
Tutorials
Part
- Creation and modification: New Sketch, Extrude, Revolve, Mirror, Scale, Fillet, Chamfer, Face From Wires, Ruled Surface, Loft, Sweep, Section, Cross-Sections, 3D Offset, 2D Offset, Thickness, Project on Surface, Appearance per Face
- Boolean: Compound, Explode Compound, Compound Filter, Linear Link Array, Polar Link Array, Circular Link Array, Path Link Array, Point Link Array, Boolean Operation, Cut, Union, Intersection, Connect Shapes, Embed Shapes, Cutout Shape, Boolean Fragments, Slice Apart, Slice to Compound, Boolean XOR, Check Geometry, Defeaturing
- Other tools: Box Selection, Shape From Mesh, Points From Shape, Convert to Solid, Reverse Shapes, Simple Copy, Transformed Copy, Shape Element Copy, Refine Shape, Set Tolerance, Persistent Section Cut, Attachment
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, Assembly, BIM, CAM, Draft, FEM, Inspection, Material, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework