void SetFaceTextureParameters( FaceHandle hFace, Vector2 offset, Vector3 uAxis, Vector3 vAxis )
void SetFaceTextureParameters( FaceHandle hFace, Vector4 axisU, Vector4 axisV, Vector2 scale )

book_4_sparkGenerated
code_blocksInput

Description

The SetFaceTextureParameters method is used to set the texture properties for a specific face in a polygon mesh. This includes defining the texture offset and the axes for the texture mapping.

Usage

To use this method, you need to provide the face handle for which you want to set the texture parameters, a vector for the texture offset, and two vectors representing the U and V axes for the texture mapping.

Example

// Example usage of SetFaceTextureParameters
PolygonMesh mesh = new PolygonMesh();
HalfEdgeMesh.FaceHandle faceHandle = ...; // Obtain a face handle
Vector2 offset = new Vector2(0.5f, 0.5f);
Vector3 uAxis = new Vector3(1, 0, 0);
Vector3 vAxis = new Vector3(0, 1, 0);

mesh.SetFaceTextureParameters(faceHandle, offset, uAxis, vAxis);