IEnumerable<FaceHandle> FaceHandles { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The FaceHandles property provides access to all the face handles currently being used in the PolygonMesh. A face handle is a reference to a face within the mesh, allowing for operations and manipulations on specific faces.

Usage

Use the FaceHandles property to iterate over all the faces in a PolygonMesh. This can be useful for operations that need to process or analyze each face individually, such as calculating normals, applying transformations, or setting materials.

Example

// Example of iterating over all face handles in a PolygonMesh
PolygonMesh mesh = new PolygonMesh();
foreach (var faceHandle in mesh.FaceHandles)
{
    // Perform operations with each face handle
    // For example, get the center of each face
    Vector3 faceCenter = mesh.GetFaceCenter(faceHandle);
    // Do something with faceCenter
}