DcelMeshCutConvex Method |
Namespace: DigitalRune.Geometry.Meshes
The mesh is cut with the given plane. If any parts are in front of the plane, they are removed. Edges and faces that go through the plane are cut. The resulting mesh is closed with a new face in the cut plane.
If the whole mesh is in front of the plane, the whole mesh is removed (Vertex is set to ). If the whole mesh is behind the plane, this method does nothing.
Prerequisites: This operation uses UserData of the vertices and it assumes that the mesh is valid, convex and closed. All faces must be triangles or convex polygons.