- Documentation
- Client functions
- getMeshInfo
Function
getMeshInfo
Returns data about a model from engineLoadMesh: the format, the number of vertices and triangles and the bounds { minX, minY, minZ, maxX, maxY, maxZ } in metres.
Syntax
table getMeshInfo(mesh mesh)Arguments
meshmesh- The model.
Returns
A data table or false.
Example
local info = getMeshInfo(engineLoadMesh("modele/pomnik.glb"))
if info then outputChatBox(info.triangles .. " trójkątów") end