Improved handling of projected coords in new intersection classes

This commit is contained in:
Robert Osfield
2006-11-01 17:18:45 +00:00
parent 75169ad16f
commit 15f7abe100
3 changed files with 52 additions and 61 deletions

View File

@@ -42,8 +42,8 @@ class Intersector : public osg::Referenced
MODEL
};
Intersector():
_coordinateFrame(MODEL),
Intersector(CoordinateFrame cf=MODEL):
_coordinateFrame(cf),
_disabledCount(0) {}
void setCoordinateFrame(CoordinateFrame cf) { _coordinateFrame = cf; }
@@ -84,6 +84,8 @@ class OSGUTIL_EXPORT LineSegmentIntersector : public Intersector
LineSegmentIntersector(const osg::Vec3d& start, const osg::Vec3d& end, LineSegmentIntersector* parent=0);
LineSegmentIntersector(CoordinateFrame cf, const osg::Vec3d& start, const osg::Vec3d& end, LineSegmentIntersector* parent=0);
struct Intersection
{
Intersection():