<div dir="ltr"><div>Hi Karl,</div>
<div> </div>
<div>You may use the LineSegmentIntersector to compute the intersections with your model, then can get the coordinates of the corresponding point.</div>
<div> </div>
<div>The codes may be like this:</div>
<div> </div>
<div> // Use the LineSegmentIntersector to compute intersections<br> osgUtil::LineSegmentIntersector::Intersections intersections;<br> if(viewer->computeIntersections(ea.getX(),ea.getY(), intersections))<br> {<br>  if(intersections.size() > 0)<br>
  {<br>   osgUtil::LineSegmentIntersector::Intersections::iterator<br>    hitr =intersections.begin();<br>   <br>   // return the intersect point in world coordinate system<br>   vec = hitr->getWorldIntersectPoint();<br>
   return true;   <br>  }  <br></div>
<div>Hope this works.</div>
<div> </div>
<div>Best regards,</div>
<div>Fangqin  </div></div>