toPolygon

open override fun toPolygon(vertexData: IVertexData): MutablePolygon(source)

Converts the provided vertex data into a polygon representation.

Return

A polygon created from the given vertex data.

Parameters

vertexData

The vertex data containing positions, normals, texture coordinates, and other attributes of the vertices.