To produce a Partition in the Main Menu select Operations - > Partition
This operation builds a compound by intersection of several shapes with a tool object or a plane.
The Result will be any GEOM_Object.
As far as the intersection of two objects can produce any type of geometrical objects, Resulting type box allows choosing the preferrable result, i.e. a solid, a shell, a list of faces, etc.
TUI Command: geompy.MakePartition(ListOfShapes, ListOfTools, ListOfKeepInside, ListOfRemoveInside, Limit, RemoveWebs, ListOfMaterials), where where ListOfShapes is a list of shapes to be intersected and ListOfTools is a list of shapes to intersect the shapes from ListOfShapes.
Since the implementation of a new version of PartitionAlgo other parameters are ignored by the current functionality and remain there only to support the old scripts.
Arguments: Name + 2 lists of shapes (the shapes from the first list will be intersected with the shapes from the second list) + reconstruction limit.
Advanced option: Set presentation parameters and subshapes from arguments.
Keep shapes of lower type checkbox allows building geometrical objects. Only lower type objects will be preserved without the upper ones.
TUI Command: geompy.MakeHalfPartition(Shapes, Plane), where Shapes are a list of Shapes to be intersected and Plane is a Tool shape, to intersect the Shapes.
Arguments: Name + a list of shapes which will be intersected + 1 cutting plane.
Advanced option: Set presentation parameters and subshapes from arguments.
Example:
Box intersected by a plane
Result of intersection
Our TUI Scripts provide you with useful examples of the use of Basic Operations.