triangulate

open override fun triangulate(): MeshData(source)

Converts the current mesh data into a fully triangulated form.

This method processes the mesh's polygons and ensures that all non-triangle polygons are subdivided into triangles. The resulting mesh maintains the original structure and attributes while adhering to the requirement of being composed solely of triangles.

Return

A new instance of IMeshData containing the triangulated representation of the original mesh data.