I am writting a MAX plugin, but in my plugin I need to compute a bounding box to enclose all my scene objects, I mean, soupouse I have a scene composed by several boxes, so my question is how can I compute a box to enclose all my scene boxes?
Thanks in advance!!
thanks for your help, but I still have some questions which I really appreciate if you could help me.
So to get the bounding box for all my scene objects just iterate through all objects and check for the absolute min X, Y, Z and max X, Y, Z. But then how can I set my bounding box width, length and hegight?
I mean, how can I compute the length, width, and height from the absolute min, and max?
for last, how can I compute the position of my box, so It enclose all my scene objects?