Share via


MeshContainer.GetAdjacencyStream() Method (Microsoft.DirectX.Direct3D)

Retrieves a GraphicsStream object that contains the mesh adjacency information.

Definition

Visual Basic Public Function GetAdjacencyStream() As GraphicsStream
C# public GraphicsStream GetAdjacencyStream();
C++ public:
GraphicsStreamGetAdjacencyStream();
JScript public function GetAdjacencyStream() : GraphicsStream;

Return Value

Microsoft.DirectX.GraphicsStream
A GraphicsStream object that represents the adjacency information.

Remarks

The size of the adjacency array is the maximum number of faces multiplied by 3.

The face adjacency is stored as an array of arrays. The innermost array contains three indices of adjacent triangles, and the outer array contains one face adjacency set per triangle in the mesh. If the edge has no adjacent faces, the value is 0xffffffff.