Added copying of plane to surface intersections in the osgUtil::PlaneIntersector class, and update wrappers.

This commit is contained in:
Robert Osfield
2006-12-03 11:44:12 +00:00
parent dc250e6e1a
commit 56b7268c72
3 changed files with 25 additions and 18 deletions

View File

@@ -55,14 +55,12 @@ class OSGUTIL_EXPORT PlaneIntersector : public Intersector
};
typedef std::set<Intersection> Intersections;
typedef std::vector<Intersection> Intersections;
inline void insertIntersection(const Intersection& intersection) { getIntersections().insert(intersection); }
inline void insertIntersection(const Intersection& intersection) { getIntersections().push_back(intersection); }
inline Intersections& getIntersections() { return _parent ? _parent->_intersections : _intersections; }
inline Intersection getFirstIntersection() { Intersections& intersections = getIntersections(); return intersections.empty() ? Intersection() : *(intersections.begin()); }
public:
virtual Intersector* clone(osgUtil::IntersectionVisitor& iv);