PrtEngine.GetAdaptedMesh Method

Language:

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 Public Function GetAdaptedMesh( _
    ByVal device As Device, _
    ByVal vertRemap() As Integer, _
    ByVal vertWeights() As Single _
) As Mesh
C# public Mesh GetAdaptedMesh(
    Device device,
    int[] vertRemap,
    float[] vertWeights
);
C++ public:
MeshGetAdaptedMesh(
    Devicedevice,
    array<int>^ vertRemap,
    array<float>^ vertWeights
);
JScript public function GetAdaptedMesh(
    device : Device,
    vertRemap : int[],
    vertWeights : float[]
) : Mesh;

Parameters

device Microsoft.DirectX.Direct3D.Device
The Device used to create the output mesh.
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.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

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