FYI Bounding::sphere and bounding box  both have ::contains( const vec3  vec
), both return true if the given point is within their volume

____________________________________________________________________________
__
Gordon Tomlinson 

[email protected]
IM: [email protected]
www.vis-sim.com www.gordontomlinson.com 
____________________________________________________________________________
__

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Andrew
Thompson
Sent: Thursday, July 30, 2009 5:10 AM
To: [email protected]
Subject: Re: [osg-users] Simple way to determine if a point is inside a
geometry

Hi Gordon,

Thanks for your reply, I'm going to give that a go. 

First check - see if its in the bounding sphere of the PAT
Second check - go for the bounding boxes of the drawables. 

I guess I'll need to inverse transform my point by the PAT's matrix first?

Anyway good to know it's not too difficult, 

Thank you, 
Andrew

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=15633#15633





_______________________________________________
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