[SOLVED] Getting the global bounding box

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
cegprakash
Posts: 41
Joined: Thu Feb 27, 2014 10:55 am

[SOLVED] Getting the global bounding box

Post by cegprakash »

I've a parent child relationship of ISceneNodes. I need to get the bounding box of this entire structure.

Will recalculateBoundingBox of the root node work? If not, what should I do? Can I convert this into an IMesh and then try out?
Last edited by cegprakash on Fri Jul 18, 2014 11:59 am, edited 1 time in total.
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: Getting the global bounding box

Post by hendu »

Create your own box, add the box of each node to it.
cegprakash
Posts: 41
Joined: Thu Feb 27, 2014 10:55 am

Re: Getting the global bounding box

Post by cegprakash »

Thank you. :)
addInternalPoints() helped.
addInternalBox() failed. May be coz I didn't called repair. Not sure. Points is sufficient for me.
Post Reply