Click or drag to resize
DigitalRuneDcelMeshFromTriangleMesh Method (TriangleMesh)
Converts the given ITriangleMesh to a DcelMesh.

Namespace: DigitalRune.Geometry.Meshes
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public static DcelMesh FromTriangleMesh(
	TriangleMesh mesh
)

Parameters

mesh
Type: DigitalRune.Geometry.MeshesTriangleMesh
The triangle mesh.

Return Value

Type: DcelMesh
The DcelMesh.
Exceptions
ExceptionCondition
ArgumentNullExceptionmesh is .
ArgumentExceptionmesh has no vertices or vertex indices.
NotSupportedExceptionmesh consists of several unconnected components or sub-meshes.
Remarks
Currently, creating DcelMeshes is not supported if the triangle mesh consists of unconnected sub-meshes or unconnected triangles. All parts of the triangle mesh must be connected via an edge. (But it is not required that the mesh is closed.)
See Also