Click or drag to resize
DigitalRuneMeshHelperToTriangleMesh Method (Submesh)
Creates a TriangleMesh from a Submesh.

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public static TriangleMesh ToTriangleMesh(
	this Submesh submesh
)

Parameters

submesh
Type: DigitalRune.GraphicsSubmesh
The mesh.

Return Value

Type: TriangleMesh
A triangle mesh containing all triangles of the specified submesh.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Submesh. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptionsubmesh is .
NotSupportedException A submeshes uses a primitive type other than triangle lists. Other primitive types are not supported.
NotSupportedException The vertex position format of a submesh is not Vector3. Only Vector3 is supported
See Also