Microsoft DirectX 9.0 SDK Update (October 2004)

TextureGutterHelper.GetBaryMap Method

Language:

Note: This documentation is preliminary and is subject to change.

Retrieves texel barycentric coordinates.

Definition

Visual Basic .NET Public Sub GetBaryMap( _
    ByVal baryData() As Vector2 _
)
C# public void GetBaryMap(
    Vector2[] baryData
);
Managed C++ public: void GetBaryMap(
    Vector2 baryData __gc[]
);
JScript .NET public function GetBaryMap(
    baryData : Vector2[]
);

Parameters

baryData Microsoft.DirectX.Vector2[]. An array of Vector2 objects that contain the first two barycentric coordinates of each texel.

Remarks

The third barycentric coordinate is given by:

1 - (baryData.x + baryData.y)

Barycentric coordinates are always specified with respect to the triangle returned by TextureGutterHelper.GetFaceMap.

The barycentric coordinates returned by this method are valid only for valid (non-class 0) texels. TextureGutterHelper.GetGutterMap will return nonzero values for valid texels.

Class 2 texels are mapped to the nearest point on the triangle in texel space.

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.

See Also


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

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