Microsoft DirectX 9.0 SDK Update (October 2004)

PrtEngine.GetAdaptedMesh Method

Language:

Note: This documentation is preliminary and is subject to change.

Returns a mesh with modifications resulting from adaptive spatial sampling. The returned mesh contains only positions, normals, and texture coordinates (if defined).

Definition

Visual Basic .NET Public Function GetAdaptedMesh( _
    ByVal device As Device, _
    ByVal faceRemap() As Integer, _
    ByVal vertRemap() As Integer, _
    ByVal vertWeights() As Single _
) As Mesh
C# public Mesh GetAdaptedMesh(
    Device device,
    int[] faceRemap,
    int[] vertRemap,
    float[] vertWeights
);
Managed C++ public: Mesh* GetAdaptedMesh(
    Device *device,
    int faceRemap __gc[],
    int vertRemap __gc[],
    float vertWeights __gc[]
);
JScript .NET public function GetAdaptedMesh(
    device : Device,
    faceRemap : int[],
    vertRemap : int[],
    vertWeights : float[]
) : Mesh;

Parameters

device Microsoft.DirectX.Direct3D.Device. The Device used to create the output mesh.
faceRemap System.Int32[]. The original mesh face that was split to generate the current face.
vertRemap System.Int32[]. A destination array containing the three original mesh vertices that are the parents of the current vertex.
vertWeights System.Single[]. A destination array containing blending factors for the vertRemap vertices.

Return Value

Microsoft.DirectX.Direct3D.Mesh . The output Mesh object.

Remarks

vertRemap and vertWeights can be used to interpolate any per-vertex value over the mesh.

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

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