Part SliceApart/ru
Расположение в меню |
---|
Деталь → Разделить → Slice Apart |
Верстаки |
Part |
Быстрые клавиши |
Никто |
Представлено в версии |
0.18 |
См. также |
Part Slice to compound, Part Explode Compound |
Описание
Tool to split shapes by intersection with other shapes. For example, for a box and a plane, two solids are created.
Above: the pieces were moved apart manually afterwards, to reveal the slicing.
Slice apart is the same as Part Slice followed by
Part Explode Compound. While "Slice to compound" is fully-parametric, and causes no trouble as the number of pieces changes, "Slice apart" will not update the number of objects as the number of pieces changes.
They both create Slice parametric feature, that puts the sliced pieces into a compound, but "Slice apart" explodes the resulting compound into separate objects.
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.
Please visit Part Slice page for more info.
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 CompoundFilter. All these CompoundFilters are united in a Compound.
Example
- Making a 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 (GitHub link) within the FreeCAD installation directory.
Notes
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.
Video-Tutorials
- https://www.youtube.com/watch?v=tzHkQaHgrfQ : FreeCad 0.18 PART WB using SLICE and SLICE APART (English language), author: Ha Gei
- https://www.youtube.com/watch?v=JJAL5JmqqKQ : FreeCAD Slice und Slice Apart und andere Tricks (German lanuage), author: Ha Gei
- Примитивы: Box, Cone, Cylinder, Sphere, Torus, CreatePrimitives, Shapebuilder
- Модификация объектов: Booleans, Union, Common, Cut, Join features, Connect, Embed, Cutout
- Инструменты расщепления: Boolean fragments, Slice a part, Slice, XOR, Part Defeaturing
- Компаунд: Make compound, Explode Compound, Compound Filter; Extrude, Fillet, Revolve, Section, Cross sections, Chamfer, Mirror, Ruled Surface, Sweep, Loft
- Инструменты сдвига: 3D Offset, 2D Offset, Thickness, Projection on surface
- Прочие инструменты: Import CAD, Export CAD, Shape from Mesh, Convert to solid, Reverse shapes, Create simple copy, Refine shape, Check geometry, Measure, Attachment

- Установка: Windows, Linux, Mac; Начинающим
- Базовая: О FreeCAD, Верстаки, Настройки, Структура документа, Настройка интерфейса, Свойства, Модель мыши; Учебники
- Верстаки: Arch, Draft, FEM, Image, Inspection, Mesh, OpenSCAD, Part, PartDesign, Path, Plot, Points, Raytracing, Reverse Engineering, Robot, Ship, Sketcher, Spreadsheet, Start, Surface workbench, TechDraw, Test Framework, Web
- Скрипты: Введение в Python, Учебник скриптов FreeCAD, Основы скриптов FreeCAD, Установка макросов, Команды графического интерфейса, Единицы Модули: Создание модулей, Создание верстаков, Добавление верстаков Сетки: Сеточные скрипты, Модуль сеток Детали: Модуль Part, Скрипты топологических данных, PythonOCC, Из Mesh в Part Coin scenegraph: The Coin/Inventor scenegraph, Pivy Интерфейс Qt: PySide, Использование графического интерфейса FreeCAD, Создание диалогов Параметрические объекты: Скриптовые объекты Прочее: Кусочки кода, Функции рисования линий, Встраивание FreeCAD, Библиотека векторной математики FreeCAD, Хаб опытных пользователей, Python, Макросы, Основы скриптов FreeCAD, Topological data scripting