IntegratedMetricTensor.ComputeFromSignal Method |
Language: |
Calculates an IMT from data that varies over the surface of the mesh (generally at a higher frequency than vertex data).
Visual Basic Public Shared Function ComputeFromSignal( _
ByVal mesh As Mesh, _
ByVal textureIndex As Integer, _
ByVal signalDimension As Integer, _
ByVal maxUVDistance As Single, _
ByVal callback As ImtSignalCallback _
) As GraphicsStreamC# public static GraphicsStream ComputeFromSignal(
Mesh mesh,
int textureIndex,
int signalDimension,
float maxUVDistance,
ImtSignalCallback callback
);C++ public:
static GraphicsStream^ ComputeFromSignal(
Mesh^ mesh,
int textureIndex,
int signalDimension,
float maxUVDistance,
ImtSignalCallback^ callback
);JScript public static function ComputeFromSignal(
mesh : Mesh,
textureIndex : int,
signalDimension : int,
maxUVDistance : float,
callback : ImtSignalCallback
) : GraphicsStream;
mesh Microsoft.DirectX.Direct3D.Mesh
An input mesh (see Mesh) that contains the object geometry for calculating the IMT.textureIndex System.Int32
Zero-based texture coordinate index that identifies which set of texture coordinates to use.signalDimension System.Int32
The number of components in each data point in the signal.maxUVDistance System.Single
The maximum distance between vertices; the algorithm continues subdividing until the distance between all vertices is less than or equal to maxUVDistance.callback Microsoft.DirectX.Direct3D.ImtSignalCallback
A callback that is useful for monitoring progress.
Microsoft.DirectX.GraphicsStream
A GraphicsStream object that returns the calculated IMT data.
This function requires the mesh to already be parameterized (so that it already has texture coordinates). It allows the user to define a signal arbitrarily over the surface of the mesh.
Exceptions
Direct3DXException The operation failed.
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.