Returns 2 tables containing mesh data for the Model.
The first table is a list of vertex positions and contains 3 numbers for the x, y, and z coordinate of each vertex. The second table is a list of triangles and contains 1-based indices into the first table representing the first, second, and third vertices that make up each triangle.
The vertex positions will be affected by node transforms.
vertices, indices = Model:getTriangles()
|vertices||table||The triangle vertex positions, returned as a flat (non-nested) table of numbers. The position of each vertex is given as an x, y, and z coordinate.|
|indices||table||The vertex indices. Every 3 indices describes a triangle.|
After this function is called on a Model once, the result is cached (in its ModelData).