Click or drag to resize
DigitalRuneMeshHelperMerge Method (Mesh, IListVector3F, IListPose)
Merges the specified mesh instances 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(
	Mesh mesh,
	IList<Vector3F> scales,
	IList<Pose> poses
)

Parameters

mesh
Type: DigitalRune.GraphicsMesh
The mesh.
scales
Type: System.Collections.GenericIListVector3F
The scale factors. Can be to use no scale, i.e. all scale factors are (1, 1, 1).
poses
Type: System.Collections.GenericIListPose
The poses (positions and orientations).

Return Value

Type: Mesh
The merged mesh.
Exceptions
ExceptionCondition
ArgumentNullExceptionmesh or poses is .
ArgumentException The number of elements in poses and scales does not match.
NotSupportedException Cannot merge skinned meshes.
NotSupportedException Too many different vertex declarations. Merged mesh must not have more than 256 different vertex declarations.
NotSupportedException Too many different materials. Merged mesh would have more than 256 materials.
NotSupportedException A submesh uses a vertex declaration which is not supported.
See Also