toPolygons

open override fun toPolygons(): List<Polygon>(source)

Converts the current mesh data into a list of polygons.

This method extracts the polygonal structure of the mesh and represents it as a collection of IPolygon instances. Each polygon contains vertex data such as positions, texture coordinates, colors, normals, tangents, and bitangents, which are used to define its geometry and visual properties.

Return

A list of IPolygon instances representing the individual polygons within the mesh.