Microsoft DirectX 9.0 SDK Update (October 2004)

Mesh.ConvertMeshSubsetToStrips Method

Language:

Note: This documentation is preliminary and is subject to change.

Converts the specified mesh subset into a series of strips.

Definition

Visual Basic .NET Public Shared Function ConvertMeshSubsetToStrips( _
    ByVal mesh As BaseMesh, _
    ByVal attributeIdentifier As Integer, _
    ByVal indexBufferOptions As MeshFlags, _
    ByRef numIndices As Integer, _
    ByRef stripLengths As GraphicsStream, _
    ByRef numStrips As Integer _
) As IndexBuffer
C# public static IndexBuffer ConvertMeshSubsetToStrips(
    BaseMesh mesh,
    int attributeIdentifier,
    MeshFlags indexBufferOptions,
    out int numIndices,
    out GraphicsStream stripLengths,
    out int numStrips
);
Managed C++ public: static IndexBuffer* ConvertMeshSubsetToStrips(
    BaseMesh *mesh,
    int attributeIdentifier,
    MeshFlags indexBufferOptions,
    int *numIndices,
    GraphicsStream **stripLengths,
    int *numStrips
);
JScript .NET public static function ConvertMeshSubsetToStrips(
    mesh : BaseMesh,
    attributeIdentifier : int,
    indexBufferOptions : MeshFlags,
    numIndices : int,
    stripLengths : GraphicsStream,
    numStrips : int
) : IndexBuffer;

Parameters

mesh Microsoft.DirectX.Direct3D.BaseMesh. A BaseMesh class 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 new strip mesh (excepting the Simplify* and Optimize* flags).
numIndices System.Int32. Number of indices in the buffer returned in the ret_IndexBuffer.
stripLengths Microsoft.DirectX.GraphicsStream. A GraphicsStream that contains one Int32 Leave Site value per strip, which specifies the number of triangles in that strip.
numStrips System.Int32. Number of individual strips in the index buffer and the corresponding strip length array.

Return Value

Microsoft.DirectX.Direct3D.IndexBuffer . An IndexBuffer class that represents the index buffer containing the strip.

Remarks

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.
OutOfMemoryException Leave Site Microsoft® Direct3D® could not allocate sufficient memory to complete the call.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center