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 gor...@gordontomlinson.com IM: gordon3db...@3dscenegraph.com www.vis-sim.com www.gordontomlinson.com ____________________________________________________________________________ __ -----Original Message----- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Andrew Thompson Sent: Thursday, July 30, 2009 5:10 AM To: osg-users@lists.openscenegraph.org 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 osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org