:) 

Gordon

__________________________________________________________
Gordon Tomlinson

Product Manager 3D
Email  : gtomlinson @ overwatch.textron.com
__________________________________________________________
(C): (+1) 571-265-2612
(W): (+1) 703-437-7651

"Self defence is not a function of learning tricks 
but is a function of how quickly and intensely one 
can arouse one's instinct for survival" 
- Master Tambo Tetsura

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jean-Sébastien 
Guay
Sent: Thursday, October 02, 2008 1:05 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Bounding Parallelepiped

Hi Gordon,

> I disagree  :)
> You need 8 vec3's to do that, you need the 4 corners of any 2 opposite 
> sides of the bounding box in order to have every side a different size The 
> osg::Bounding box only supplies 2 vec3's which effectively gives you 2 corner 
> points and you cannot get the 8 corner points from 2, apart from a parallel 
> rectangle ...

Visibly there's a misunderstanding on terminology here. I'm saying 
osg::BoundingBox is not restricted to a cube. It's a general AABB, meaning it 
can have different sizes in all three dimensions, but all aligned to the axes.

For example:

osg::Vec3 _min(-2, -6, -3);
osg::Vec3 _max(1, -2, 64);

means a bounding box of size (3, 4, 67). All three dimensions have different 
sizes. The center is (-0.5, -4, 30.5).

I assume you were saying the same thing, and thus we're both arguing the same 
side of the argument :-)

J-S
--
______________________________________________________
Jean-Sebastien Guay    [EMAIL PROTECTED]
                                http://www.cm-labs.com/
                         http://whitestar02.webhop.org/ 
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to