void GetFaceTextureParameters( FaceHandle hFace, Vector4& outAxisU, Vector4& outAxisV, Vector2& outScale )

book_4_sparkGenerated
code_blocksInput

Description

The GetFaceTextureParameters method retrieves the texture parameters for a specified face in a polygon mesh. This includes the U and V axes and the scale of the texture applied to the face.

Usage

To use this method, you need to provide a face handle from the HalfEdgeMesh and prepare variables to receive the output parameters for the U and V axes and the scale. The method will populate these variables with the current texture parameters of the specified face.

Example

// Example usage of GetFaceTextureParameters

// Assume polygonMesh is an instance of PolygonMesh
// and faceHandle is a valid FaceHandle
PolygonMesh polygonMesh = new PolygonMesh();
HalfEdgeMesh.FaceHandle faceHandle = ...; // Obtain a valid face handle

Vector4 axisU, axisV;
Vector2 scale;

// Retrieve the texture parameters for the specified face
polygonMesh.GetFaceTextureParameters(faceHandle, out axisU, out axisV, out scale);

// axisU, axisV, and scale now contain the texture parameters for the face