ID3DX10Mesh::GenerateAdjacencyAndPointReps method

Generate a list of mesh edges, as well as a list of faces that share each edge.

Syntax

HRESULT GenerateAdjacencyAndPointReps(
  [in] FLOAT Epsilon
);

Parameters

Epsilon [in]

Type: FLOAT

Specifies that vertices that differ in position by less than epsilon should be treated as coincident.

Return value

Type: HRESULT

The return value is one of the values listed in Direct3D 10 Return Codes.

Remarks

After an application generates adjacency information for a mesh, the mesh data can be optimized for better drawing performance.

The order of the entries in the adjacency buffer is determined by the order of the vertex indices in the index buffer. The adjacent triangle 0 always corresponds to the edge between the indices of the corners 0 and 1. The adjacent triangle 1 always corresponds to the edge between the indices of the corners 1 and 2 while the adjacent triangle 2 corresponds to the edge between the indices of the corners 2 and 0.

Requirements

Requirement Value
Header
D3DX10.h
Library
D3DX10.lib

See also

ID3DX10Mesh

D3DX Interfaces