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