2009/5/22 Paul Griffiths <gaffe...@gmail.com>:
> Hi,
> I wish to compute an axis aligned bounding box of a given size whos position 
> is centered to a node.
>
> This node cound be scaled, translated or rotated. it must be axis aligned.
>
> I need to know this to test if a picked part of a node picked with the mouse 
> is inside the bounds a bounding box surrounding the node, but i need to 
> spesify the size.
>
> ...
>
> Thank you!
>
> Cheers,
> PaulG
>

LineSegmentIntersector::Intersection has a member: matrix
which is the accumulated local to world coordinates matrix.

If you transform the nodes BoundingSphere center by that, you
can then construct an aabb around that at whatever size you want.

-- 
http://www.ssTk.co.uk
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to