Reference

D3DXWeldVertices(3w)

NAME

D3DXWeldVertices (D3DX9_36.@)

SYNOPSIS

HRESULT D3DXWeldVertices
(
LPD3DXMESH mesh,
DWORD flags,
CONST D3DXWELDEPSILONS* epsilons,
CONST DWORD* adjacency,
DWORD* adjacency_out,
DWORD* face_remap_out,
LPD3DXBUFFER* vertex_remap_out
)

DESCRIPTION

Welds together similar vertices. The similarity between vert- ices can be the position and other components such as normal and color.

PARAMS

mesh [In] Mesh which vertices will be welded together.

flags [In] D3DXWELDEPSILONSFLAGS specifying how to weld.

epsilons [In] How similar a component needs to be for welding.

adjacency [In] Which faces are adjacent to other faces.

adjacency_out [Out] Updated adjacency after welding.

face_remap_out [Out] Which faces the old faces have been mapped to.

vertex_remap_out [Out] Which vertices the old vertices have been mapped to.

RETURNS

Success: D3D_OK.

Failure: D3DERR_INVALIDCALL, E_OUTOFMEMORY.

BUGS

Attribute sorting not implemented.

IMPLEMENTATION

Declared in "d3dx9mesh.h".

Implemented in "dlls/d3dx9_36/mesh.c".