![]() |
![]() |
![]() |
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).
Visual Basic .NET Public Function GetAdaptedMesh( _
ByVal device As Device, _
ByVal vertRemap() As Integer, _
ByVal vertWeights() As Single _
) As MeshC# public Mesh GetAdaptedMesh(
Device device,
int[] vertRemap,
float[] vertWeights
);Managed C++ public: Mesh* GetAdaptedMesh(
Device *device,
int vertRemap __gc[],
float vertWeights __gc[]
);JScript .NET public function GetAdaptedMesh(
device : Device,
vertRemap : int[],
vertWeights : float[]
) : Mesh;
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.
Microsoft.DirectX.Direct3D.Mesh . The output Mesh object.
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.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center