Share via


Mesh.ConvertMeshSubsetToSingleStrip(Mesh,Int32,MeshFlags,Int32) Method (Microsoft.DirectX.Direct3D)

Converts the specified mesh subset into a single triangle strip..

Definition

Visual Basic Public Shared Function ConvertMeshSubsetToSingleStrip( _
    ByVal mesh As Mesh, _
    ByVal attributeIdentifier As Integer, _
    ByVal indexBufferOptions As MeshFlags, _
    ByRef numIndices As Integer _
) As IndexBuffer
C# public static IndexBuffer ConvertMeshSubsetToSingleStrip(
    Mesh mesh,
    int attributeIdentifier,
    MeshFlags indexBufferOptions,
    out int numIndices
);
C++ public:
static IndexBufferConvertMeshSubsetToSingleStrip(
    Meshmesh,
    int attributeIdentifier,
    MeshFlags indexBufferOptions,
    [Out] intnumIndices
);
JScript public static function ConvertMeshSubsetToSingleStrip(
    mesh : Mesh,
    attributeIdentifier : int,
    indexBufferOptions : MeshFlags,
    numIndices : int
) : IndexBuffer;

Parameters

mesh Microsoft.DirectX.Direct3D.Mesh
A BaseMesh object that represents the mesh to convert.
attributeIdentifier System.Int32
Attribute identifier of the mesh subset to convert.
indexBufferOptions Microsoft.DirectX.Direct3D.MeshFlags
One or more flags from the MeshFlags enumeration that specify options for creating the single strip mesh (excepting the Simplify* and Optimize* flags).
numIndices System.Int32
Number of indices in the buffer returned in the ret_IndexBuffer.

Return Value

Microsoft.DirectX.Direct3D.IndexBuffer
An object that contains the strip.

Remarks

Before running this function, call Optimize or OptimizeFaces, with the MeshFlags.OptimizeAttributeSort flag set.

Exceptions

InvalidCallException

The method call is invalid. For example, a method's parameter might contain an invalid value.

OutOfMemoryExceptionLeave Site

Microsoft Direct3D could not allocate sufficient memory to complete the call.