slice_mesh

compas_cgal.slicer.slice_mesh(mesh: Union[Tuple[nptyping.types._ndarray.NDArray, nptyping.types._ndarray.NDArray], Tuple[List[List[float][List[float]]], List[List[int][List[int]]]]], planes: List[Union[compas.geometry.primitives.plane.Plane, Tuple[compas.geometry.primitives.point.Point, compas.geometry.primitives.vector.Vector], Tuple[List[float][List[float]], List[float][List[float]]]]]) → List[nptyping.types._ndarray.NDArray][source]

Slice a mesh by a list of planes.

Parameters
  • mesh (tuple of vertices and faces) – The mesh to slice.

  • planes (list of (point, normal) tuples or compas.geometry.Plane) – The slicing planes.

Returns

list of arrays – The points defining the slice polylines.