Click or drag to resize
DigitalRuneDcelMeshFromTriangleMesh Method (ITriangleMesh)
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(
	ITriangleMesh mesh
)

Parameters

mesh
Type: DigitalRune.Geometry.MeshesITriangleMesh
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