Mesh.ConvertMeshSubsetToSingleStrip Method |
Language: |
Converts the specified mesh subset into a single triangle strip..
Visual Basic Public Shared Function ConvertMeshSubsetToSingleStrip( _
ByVal mesh As Mesh, _
ByVal attributeIdentifier As Integer, _
ByVal indexBufferOptions As MeshFlags, _
ByRef numIndices As Integer _
) As IndexBufferC# public static IndexBuffer ConvertMeshSubsetToSingleStrip(
Mesh mesh,
int attributeIdentifier,
MeshFlags indexBufferOptions,
out int numIndices
);C++ public:
static IndexBuffer^ ConvertMeshSubsetToSingleStrip(
Mesh^ mesh,
int attributeIdentifier,
MeshFlags indexBufferOptions,
[Out] int% numIndices
);JScript public static function ConvertMeshSubsetToSingleStrip(
mesh : Mesh,
attributeIdentifier : int,
indexBufferOptions : MeshFlags,
numIndices : int
) : IndexBuffer;
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.
Microsoft.DirectX.Direct3D.IndexBuffer
An object that contains the strip.
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. OutOfMemoryException Microsoft Direct3D could not allocate sufficient memory to complete the call.
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center