Click or drag to resize
DigitalRuneDcelMeshCutConvex Method
Cuts mesh with a plane.

Namespace: DigitalRune.Geometry.Meshes
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public bool CutConvex(
	Plane plane
)

Parameters

plane
Type: DigitalRune.Geometry.ShapesPlane
The plane.

Return Value

Type: Boolean
if the mesh was cut; otherwise, if the mesh was not modified.
Remarks

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.

See Also