toPolygon

abstract fun toPolygon(vertexData: IVertexData): IPolygon(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.