Description
The Index
property of the HalfEdgeMesh.HalfEdgeHandle
class represents the index of the half-edge within the mesh data structure. This property is crucial for identifying and accessing specific half-edges in the mesh, allowing for efficient traversal and manipulation of the mesh topology.
Usage
Use the Index
property to retrieve or set the index of a half-edge in the mesh. This property is virtual and sealed, meaning it can be overridden in derived classes but cannot be further sealed. It is a public instance property, so it can be accessed from any instance of HalfEdgeHandle
.
Example
// Example of accessing the Index property
HalfEdgeMesh.HalfEdgeHandle halfEdgeHandle = new HalfEdgeMesh.HalfEdgeHandle();
int edgeIndex = halfEdgeHandle.Index;
// Example of setting the Index property
halfEdgeHandle.Index = 5;