One way might be something along the lines of
1) use the boudingspehere of PAT to see if you point is with in the bounding sphere if its not then stop/bail ( you will have to transform the sphere by the pat transforms etc) 2) Iterate over each drawables boundling box ( transfromed by applying the Pat matrix ) and test the to see, if the point is inside the bounding box, do what you need to do 3) get to this point , your not inside so bail You could also trnasform the point into the PATs reference frame as well There are helper functions/methods for these tests etc. Gordon Product Manager 3d __________________________________________________________ Gordon Tomlinson Email : gtomlinson @ overwatch.textron.com __________________________________________________________ -----Original Message----- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Andrew Thompson Sent: Wednesday, July 29, 2009 11:54 AM To: osg-users@lists.openscenegraph.org Subject: [osg-users] Simple way to determine if a point is inside a geometry Hi there, Given a single object in my scene graph defined by the hierachy PositionAttitudeTransform (x1) | Geode (x1) | Geometry (x1) | Drawables (x Many) Is there a simple way to determine if a point location is inside the geometry, taking into account transforms applied by the PAT? I am reluctant to use the intersect visitor, as the scene is very cluttered and I will likely get lots of intersections, and this may be time-consuming to determine whether the intersection was with my geometry object. Any ideas? Thank you! Andrew ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15610#15610 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or g _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org