........
case(osgGA::GUIEventAdapter::PUSH):
{
pick(ea,viewer);
break;
}
case(osgGA::GUIEventAdapter::DRAG):
{
//if(sphere is picked)
/* changing radius of sphere*/
}
.................
.................
void PickHandler::pick(const osgGA::GUIEventAdapter& ea, osgViewer::Viewer*
viewer)
{
osgUtil::LineSegmentIntersector::Intersections intersection;
if(viewer->computeIntersections(ea.getX(),ea.getY(),intersection))
{
..............***......
}
}
I have created a sphere *( with "setUseDisplayList(false) " ) .*
when I change the radius of sphere on mouse click ,
above " if statement (...***...) is becoming false , i.e. i am not able to
get in that "if statement".
If I don't change the radius then everything works fine i.e control is going
in above "if statement"
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org