D3DXCLEANTYPE
Microsoft DirectX 9.0 SDK Update (October 2004)

D3DXCLEANTYPE Enumerated Type


Defines operations to perform on vertices in preparation for mesh cleaning.

Syntax

typedef enum _D3DXCLEANTYPE {
    D3DXCLEAN_BACKFACING = 1,
    D3DXCLEAN_BOWTIES = 2,
    D3DXCLEAN_SKINNING = D3DXCLEAN_BACKFACING,
    D3DXCLEAN_OPTIMIZATION = D3DXCLEAN_BACKFACING,
    D3DXCLEAN_SIMPLIFICATION = D3DXCLEAN_BACKFACING | D3DXCLEAN_BOWTIES
} D3DXCLEANTYPE;

Constants

D3DXCLEAN_BACKFACING

Merge triangles that share the same vertex indices but have face normals pointing in opposite directions (back-facing triangles). Unless the triangles are not split by adding a replicated vertex, mesh adjacency data from the two triangles may conflict.

D3DXCLEAN_BOWTIES

If a vertex is the apex of two triangle fans (a bowtie) and mesh operations will affect one of the fans, then split the shared vertex into two new vertices. Bowties can cause problems for operations such as mesh simplification that remove vertices, because removing one vertex affects two distinct sets of triangles.

D3DXCLEAN_SKINNING

Use this flag to prevent infinite loops during skinning setup mesh operations.

D3DXCLEAN_OPTIMIZATION

Use this flag to prevent infinite loops during mesh optimization operations.

D3DXCLEAN_SIMPLIFICATION

Use this flag to prevent infinite loops during mesh simplification operations.

Enumerated Type Information

Headerd3dx9mesh.h
Minimum operating systems Windows 98


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.