split
fun split(positions: Array<Position>, indices: IntArray, textureCoords: Array<Vec2>? = null, outlineIndices: IntArray? = null): List<TriangleMesh>
Splits a triangle mesh into several meshes, each of which contains fewer than 65536 positions.
Return
A list of objects, each of which defines one subdivision of the full mesh.
Parameters
positions
An array containing the mesh vertices.
indices
An array of integers identifying the positions of each mesh triangle. Each sequence of three indices defines one triangle in the mesh. The indices identify the index of the position in the associated positions array.
texture Coords
The mesh's texture coordinates.
outline Indices
The mesh's outline indices.