BaseMesh.GenerateAdjacency Method

Language:

Generates adjacency information based on mesh indices.

Definition

Visual Basic Public Sub GenerateAdjacency( _
    ByVal epsilon As Single, _
    ByVal adjacency() As Integer _
)
C# public void GenerateAdjacency(
    float epsilon,
    int[] adjacency
);
C++ public:
void GenerateAdjacency(
    float epsilon,
    array<int>^ adjacency
);
JScript public function GenerateAdjacency(
    epsilon : float,
    adjacency : int[]
);

Parameters

epsilon System.Single
Specifies that vertices that differ in position by less than epsilon should be treated as coincident.
adjacency System.Int32[]
Array of three Int32 Leave Site values per face to be filled with adjacent face indices. The size of this array must be at least 3 * BaseMesh.NumberFaces.

Remarks

The GenerateAdjacency method determines which patches are adjacent (within the provided tolerance). This information is used internally to optimize tessellation.

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.
OutOfMemoryException Leave Site Microsoft Direct3D could not allocate sufficient memory to complete the call.

Applies To

Mesh, ProgressiveMesh

Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center