toMeshData

abstract fun toMeshData(): MeshData(source)

Converts the current mesh data into an immutable MeshData instance.

This method provides a direct representation of the current mesh, encapsulating its vertex data and polygon information in an immutable format.

Return

A MeshData instance representing the current mesh data.