D3DXWeldVertices(3w)

D3DXWeldVertices3w

Usage

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

Overview

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.

Implementation

Declared in "d3dx9mesh.h".

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

Bugs

Attribute sorting not implemented.

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.