Model:getMeshDrawRange
EditReturns the vertex range of a part of a mesh. Meshes can be split into multiple "parts", and each part can have its own draw mode and material.
start, count = Model:getMeshDrawRange(mesh)Arguments
| Name | Type | Description |
| mesh | number | The index of a mesh. |
Returns
| Name | Type | Description |
| start | number | The index of the first vertex or index in the part. |
| count | number | The number of vertices or indices in the part. |
Notes
Parts will always use the full set of vertices/indices in the mesh, in order.
If the mesh has indices, then the draw range will be in terms of indices, otherwise it will be vertices. This matches the way Mesh:setDrawRange works.