Share via


TextureGutterHelper.GetBaryMap(Vector2[]) Method (Microsoft.DirectX.Direct3D)

Retrieves texel barycentric coordinates.

Definition

Visual Basic Public Sub GetBaryMap( _
    ByVal baryData() As Vector2 _
)
C# public void GetBaryMap(
    Vector2[] baryData
);
C++ public:
void GetBaryMap(
    array<Vector2>^ baryData
);
JScript 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