compas_cgal.slicer
¤
Functions¤
slice_mesh_planes
¤
slice_mesh_planes(mesh: VerticesFaces, planes: list[Plane]) -> PolylinesNumpy
Slice a mesh by a list of planes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mesh
|
VerticesFaces
|
The mesh to slice. |
required |
planes
|
list[Plane]
|
The slicing planes. |
required |
Returns:
| Type | Description |
|---|---|
PolylinesNumpy
|
A list of slice polylines, with each polyline an array of points. |
Examples:
>>> from compas.geometry import Sphere, Plane, Polyline
>>> from compas.itertools import linspace
>>> from compas_cgal.slicer import slice_mesh