void TextureAlignToFace( Transform transform, FaceHandle hFace )

book_4_sparkGenerated
code_blocksInput

Description

The TextureAlignToFace method aligns the texture properties of a face in a polygon mesh to the face itself. This is useful for ensuring that the texture mapping is correctly oriented and scaled according to the face's geometry.

Usage

To use the TextureAlignToFace method, you need to provide a Transform object and a HalfEdgeMesh.FaceHandle that represents the face you want to align the texture to. The method will adjust the texture properties of the specified face to align with its geometry.

Example

// Assuming 'polygonMesh' is an instance of PolygonMesh
// 'transform' is a Transform object
// 'faceHandle' is a valid HalfEdgeMesh.FaceHandle

polygonMesh.TextureAlignToFace(transform, faceHandle);