capytaine.meshes.clipper module

This module implements a tools to clip meshes against a plane. Based on meshmagick <https://github.com/LHEEA/meshmagick> by François Rongère.

capytaine.meshes.clipper.clip(source_mesh: Mesh, plane: Plane, vicinity_tol=0.001, name=None)[source]

Return a new mesh containing the source mesh clipped by the plane.

Parameters:
  • source_mesh (Mesh) – The mesh to be clipped.

  • plane (Plane, optional) – The clipping plane.

  • vicinity_tol (float, optional) – The absolute tolerance to consider en vertex is on the plane. Default is 1e-3.

  • name (string, optional) – A name for the new clipped mesh.