---
name: "D3DXWeldVertices"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/D3DXWeldVertices"
---

# 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"**.
