![]() |
![]() |
![]() |
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
Header d3dx9mesh.h Minimum operating systems Windows 98
See Also
D3DXWELDEPSILONS