|
发表于 2011-8-29 16:52:34
|
显示全部楼层
- if (viewer->computeIntersections(x, y, intersections, asv::MODEL_NODE_MASK))
- {
- // Get the nearest intersection point
- osgUtil::LineSegmentIntersector::Intersections::iterator hitr = intersections.begin();
- v3d = hitr->getWorldIntersectPoint();
- // 或者:
- hitr->nodePath;;
- //.....
- }
复制代码 |
|