Page 1 of 1

Getting size of node (for OgreOde::BoxGeometry)

Posted: Mon Jan 31, 2005 6:12 pm
by charlie
To create a geometry for ogreode I need the size of a node (in my case I want to create a OgreOde::BoxGeometry).
But what is the easiest way of getting it, when I only know the meshfile (the scale is no problem since I can get it form the node)? is it possible to get the actual size somehow?

Posted: Mon Jan 31, 2005 11:34 pm
by monster
Have a look at the MeshInformer stuff.
What springs to mind immediately is;

Code: Select all

OgreOde::MeshInformer::getSize(Mesh* mesh);
But there are other methods that will automatically create dynamic or static boxes for you, based on meshes.
I think the demos show this.

Posted: Tue Feb 01, 2005 4:21 pm
by charlie
Must have missed it. Sorry....

Thanks for the hint.