Hi,
Is there a simple way to get an object’s bounding box dimensions?
I tried iterating through the verts and recording maximum/minimums but it is rather inefficient. Though, working directly with the bounding box would be much easier.
Thanks,
Hi,
Is there a simple way to get an object’s bounding box dimensions?
I tried iterating through the verts and recording maximum/minimums but it is rather inefficient. Though, working directly with the bounding box would be much easier.
Thanks,
this is exactly what i am looking for.
If you never found the bounding box answer please post code for getting min max dimensions (just so i do not have to type it myself)
But i can not see why there is not bounding box data available with a mesh.
the bounding box is available
but it is in object space [not world space]
object type
getBoundBox()
Returns the bounding box of this object. This works for meshes (out of edit mode) and curves.
Returns:
The coordinates of the 8 corners of the bounding box.
(type=list of 8 (x,y,z) float coordinate vectors)