[Closed] Oriented Bounding Box
Is there any way to access the oriented bounding box that 3ds Max automatically draws around the current selection?
I have a feeling that this is not always the tightest one, but I would rather use this than implement the whole computation myself.
Any help would be appreciated.
thx
M.
i’d loop trough the objects and get the max and min point saveing to a higer level var
then use these 2 to create your BB or a dummy. at least thats what i’d do, but i’m sure theres a better way
you should be able to get the bounding box in the object’s local coordinate system using something like…
nodeGetBoundingBox $ $.transform
If you make a box based on this, move it over to the object’s position and rotation and it should be a match
If you’re in 2008+, or using the Avguard extensions, check out: [font=Courier New]nodeLocalBoundingBox <node>
[font=Verdana]EDIT: oops, done it again.
[/font][/font]
Thx guys, the nodeGetBoundingBox / nodeLocalBoundingBox functions work fine!