D3DXCLEANTYPE enumeration
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, *LPD3DXCLEANTYPE;
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.
Requirements
Requirement | Value |
---|---|
Header |
|
See also