Mesh.ConvertMeshSubsetToStrips(BaseMesh,Int32,MeshFlags,Int32,GraphicsStream,Int32) Method (Microsoft.DirectX.Direct3D)
Converts the specified mesh subset into a series of strips.
Definition
Visual Basic 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 IndexBufferC# public static IndexBuffer ConvertMeshSubsetToStrips(
BaseMesh mesh,
int attributeIdentifier,
MeshFlags indexBufferOptions,
out int numIndices,
out GraphicsStream stripLengths,
out int numStrips
);C++ public:
static IndexBuffer^ ConvertMeshSubsetToStrips(
BaseMesh^ mesh,
int attributeIdentifier,
MeshFlags indexBufferOptions,
[Out] int% numIndices,
[Out] GraphicsStream^% stripLengths,
[Out] int% numStrips
);JScript 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 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
A class that represents the index buffer containing the strip.
Remarks
Before running this function, call Optimize or OptimizeFaces, with the MeshFlags.OptimizeAttributeSort flag set.
Exceptions
The method call is invalid. For example, a method's parameter might contain an invalid value.
Microsoft Direct3D could not allocate sufficient memory to complete the call.