Description
The Index
property of the HalfEdgeMesh.FaceHandle
class represents the unique identifier for a face within a half-edge mesh structure. This identifier is an integer value that allows for efficient access and manipulation of the face within the mesh.
Usage
Use the Index
property to retrieve or set the unique identifier of a face in a half-edge mesh. This property is particularly useful when iterating over faces or when you need to reference a specific face within the mesh.
Example
// Example of accessing the Index property of a FaceHandle
HalfEdgeMesh.FaceHandle faceHandle = new HalfEdgeMesh.FaceHandle();
int faceIndex = faceHandle.Index;
// Example of setting the Index property
faceHandle.Index = 5; // Sets the face index to 5