IntegratedMetricTensor.ComputeFromSignal(Mesh,Int32,Int32,Single,ImtSignalCallback) Method (Microsoft.DirectX.Direct3D)

Calculates an IMT from data that varies over the surface of the mesh (generally at a higher frequency than vertex data).

Definition

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 GraphicsStream
C# public static GraphicsStream ComputeFromSignal(
    Mesh mesh,
    int textureIndex,
    int signalDimension,
    float maxUVDistance,
    ImtSignalCallback callback
);
C++ public:
static GraphicsStreamComputeFromSignal(
    Meshmesh,
    int textureIndex,
    int signalDimension,
    float maxUVDistance,
    ImtSignalCallbackcallback
);
JScript public static function ComputeFromSignal(
    mesh : Mesh,
    textureIndex : int,
    signalDimension : int,
    maxUVDistance : float,
    callback : ImtSignalCallback
) : GraphicsStream;

Parameters

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.

Return Value

Microsoft.DirectX.GraphicsStream
A GraphicsStream object that returns the calculated IMT data.

Remarks

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.