Skip to main content

mesh_union

Function mesh_union 

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

Compute the boolean union of two closed triangle meshes.

Returns a mesh containing all regions inside either a or b.

    A.union(B)

    +-------+            +-------+
    |       |            |       |
    |   A   |            |       |
    |    +--+----+   =   |       +----+
    +----+--+    |       +----+       |
         |   B   |            |       |
         |       |            |       |
         +-------+            +-------+