Skip to main content

mesh_boolean

Function mesh_boolean 

Source
pub fn mesh_boolean(
    a: &TriangleMesh,
    b: &TriangleMesh,
    op: BooleanOp,
) -> Result<TriangleMesh>
Expand description

Perform a mesh boolean operation on two closed triangle meshes.

§Arguments

  • a - First operand mesh (must be closed / watertight)
  • b - Second operand mesh (must be closed / watertight)
  • op - The boolean operation to apply

§Returns

A new TriangleMesh representing the result of the operation.