D3DXWELDEPSILONSFLAGS
Microsoft DirectX 9.0 SDK Update (October 2004)

D3DXWELDEPSILONSFLAGS Enumerated Type


Options for welding together vertices.

Syntax

typedef enum {
    D3DXWELDEPSILONS_WELDALL = 1,
    D3DXWELDEPSILONS_WELDPARTIALMATCHES = 2,
    D3DXWELDEPSILONS_DONOTREMOVEVERTICES = 4,
    D3DXWELDEPSILONS_DONOTSPLIT = 8
} D3DXWELDEPSILONSFLAGS;

Constants

D3DXWELDEPSILONS_WELDALL

Weld together all vertices that are at the same location. Using this flag avoids an epsilon comparison between vertex components.

D3DXWELDEPSILONS_WELDPARTIALMATCHES

If a given vertex component is within epsilon, modify partially matched vertices so that both components are identical. If all components are equal, remove one of the vertices.

D3DXWELDEPSILONS_DONOTREMOVEVERTICES

Instructs the weld to allow only modifications to vertices and not removal. This flag is valid only if D3DXWELDEPSILONS_WELDPARTIALMATCHES is set. It is useful to modify vertices to be equal, but not to allow vertices to be removed.

D3DXWELDEPSILONS_DONOTSPLIT

Instructs the weld not to split vertices that are in separate attribute groups. When the ID3DXMesh::Optimize, ID3DXPMesh::Optimize, or ID3DXPMesh::OptimizeBaseLOD methods are called with the D3DXMESHOPT_ATTRSORT flag, then the D3DXMESHOPT_DONOTSPLIT flag will also be set.

Setting this flag can slow down software vertex processing.

Enumerated Type Information

Headerd3dx9mesh.h
Minimum operating systems Windows 98

See Also

D3DXWELDEPSILONS


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