Microsoft DirectX 8.1 (Visual Basic)

D3DXBaseMesh.GenerateAdjacency

Generates adjacency information based on mesh indices.

object.GenerateAdjacency( _
  Epsilon As Single, _
  Adjacency As Any)

Parts

Epsilon
Specifies that vertices that differ in position by less than epsilon should be treated as coincident.
Adjacency
First element of an array of three Singles per face that specify the three neighbors for each face in the mesh to be cleaned. Make sure that the size of this array is at least 3 * GetNumFaces * Len(Single) bytes long.

Error Codes

If the method fails, an error is raised and Err.Number can be set to D3DERR_INVALIDCALL.

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.

Applies To

This method applies to the following classes, which implement methods from D3DXBaseMesh.