Freigeben über


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[]
)

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.

.NET Framework Security

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

Platforms

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

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

Version Information

.NET Compact Framework

Supported in: 2.0

See Also

Reference

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