BaseMesh.GenerateAdjacency Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Generates adjacency information based on mesh indices.

Namespace:  Microsoft.WindowsMobile.DirectX.Direct3D
Assembly:  Microsoft.WindowsMobile.DirectX (in Microsoft.WindowsMobile.DirectX.dll)

Syntax

'Declaration
Public Sub GenerateAdjacency ( _
    epsilon As Single, _
    adjacency As Integer() _
)
'Usage
Dim instance As BaseMesh
Dim epsilon As Single
Dim adjacency As Integer()

instance.GenerateAdjacency(epsilon, adjacency)
public void GenerateAdjacency(
    float epsilon,
    int[] adjacency
)
public:
void GenerateAdjacency(
    float epsilon, 
    array<int>^ adjacency
)
member GenerateAdjacency : 
        epsilon:float32 * 
        adjacency:int[] -> unit 

Parameters

  • epsilon
    Type: System.Single
    Specifies that vertices that differ in position by less than a small amount (the epsilon value) should be treated as coincident.
  • adjacency
    Type: array<System.Int32[]
    Array of three integer values per face to be filled with adjacent face indices. The size of this array must be at least 3 * NumberFaces.

Exceptions

Exception Condition
InvalidCallException

The call is invalid, such as an invalid method parameter.

OutOfMemoryException

Insufficient memory to complete the call.

Remarks

The GenerateAdjacency method determines which patches are adjacent and within the provided tolerance. Direct3D uses this information internally to optimize tessellation.

A patch is a mathematically defined 3-D surface, typically defined by splines, that is used to create a 3-D model. Tessellation is subdividing geometry into tiles, usually involving subdividing mesh faces into triangles.

.NET Framework Security

Platforms

Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Compact Framework

Supported in: 3.5, 2.0

See Also

Reference

BaseMesh Class

BaseMesh Members

Microsoft.WindowsMobile.DirectX.Direct3D Namespace