Condividi tramite


BaseMesh.GenerateAdjacency Method

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
)
public void GenerateAdjacency (
    float epsilon, 
    int[] adjacency
)
public function GenerateAdjacency (
    epsilon : float, 
    adjacency : int[]
)
Not applicable.

Parameters

  • epsilon
    Specifies that vertices that differ in position by less than a small amount (the epsilon value) should be treated as coincident.
  • adjacency
    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 type 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.

Platforms

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

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Compact Framework

Supported in: 2.0

See Also

Reference

BaseMesh Class
BaseMesh Members
Microsoft.WindowsMobile.DirectX.Direct3D Namespace