trimesh_slice

compas.geometry.trimesh_slice(mesh, planes)[source]

Slice a mesh by a list of planes.

Parameters
  • mesh (tuple[sequence[[float, float, float] | Point], sequence[[int, int, int]]]) – A mesh represented by a list of vertices and a list of faces.

  • planes (sequence[[point, vector] | Plane]) – The slicing planes.

Returns

list[list[float, float, float]] – The points defining the slice polylines.