If i have a osg:Group added to a osg:ClipNode and i set its bounding box how 
can i check when using a picker if the world pick point is within this bounding 
box?


for example in my app i use this code on a group call someGroup

this->clipNode = new osg::ClipNode;
this->clipNode->addChild(someGroup);
this->clipBoundingBox.set(xmin, ymin, zmin, xmax, ymax, zmax);
this->clipNode->createClipBox(this->clipBoundingBox);
someGroup->setStateSet(this->clipNode->getStateSet());



later during the pick i get this bounding box:

how do i check if the world pick point is within this bounding box?

im looking for something like 

if (clipBoundingBox.contains(hitr->getLocalIntersectPoint().x(), 
hitr->getLocalIntersectPoint().y(), hitr->getLocalIntersectPoint().y()))
{
// do something

}

I hope you understand what im after, im hoping to release my RedWidget system 
to the community so i need it right.

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to