Click or drag to resize
DigitalRuneMeshHelperMerge Method (IEnumerableSceneNode)
Merges the specified scene nodes (including descendants) into a single mesh.

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public static Mesh Merge(
	IEnumerable<SceneNode> sceneNodes
)

Parameters

sceneNodes
Type: System.Collections.GenericIEnumerableSceneNode
The scene nodes.

Return Value

Type: Mesh
The merged mesh.
Exceptions
ExceptionCondition
ArgumentNullExceptionsceneNodes is .
NotSupportedException Too many different materials. Merged mesh must have less than 256 materials.
NotSupportedException A submesh uses a vertex declaration which is not supported.
Remarks

Only MeshNodes are merged. Other scene node types are ignored.

See Also