IEnumerable<VertexHandle> VertexHandles { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The VertexHandles property provides access to all the vertex handles currently being used in the PolygonMesh. A vertex handle is a reference to a vertex within the mesh, allowing for operations and manipulations on the mesh's vertices.

Usage

Use the VertexHandles property to iterate over or access the vertex handles in a PolygonMesh. This can be useful for operations that need to process or analyze each vertex in the mesh.

Example

// Example of iterating over vertex handles in a PolygonMesh
PolygonMesh mesh = new PolygonMesh();
foreach (var vertexHandle in mesh.VertexHandles)
{
    // Perform operations with each vertex handle
    Vector3 position = mesh.GetVertexPosition(vertexHandle);
    // Example: Print the position of each vertex
    // Console.WriteLine(position);
}