14 #ifndef OSGUTIL_LINESEGMENTINTERSECTOR
15 #define OSGUTIL_LINESEGMENTINTERSECTOR 1
17 #include <osgUtil/IntersectionVisitor>
78 inline Intersections&
getIntersections() {
return _parent ? _parent->_intersections : _intersections; }
92 virtual bool enter(
const osg::Node& node);
101 virtual void reset();
const osg::Vec3d & getStart() const
osg::ref_ptr< osg::Drawable > drawable
osg::ref_ptr< osg::RefMatrix > matrix
Intersections _intersections
unsigned int primitiveIndex
const osg::Vec3 & getLocalIntersectNormal() const
static Vec3f transform3x3(const Vec3f &v, const Matrixd &m)
LineSegmentIntersector * _parent
void insertIntersection(const Intersection &intersection)
T * clone(const T *t, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
std::multiset< Intersection > Intersections
const osg::Vec3d & getEnd() const
static Matrixd inverse(const Matrixd &matrix)
const osg::Vec3d & getLocalIntersectPoint() const
std::vector< double > RatioList
osg::Vec3 getWorldIntersectNormal() const
virtual bool containsIntersections()
osg::Vec3d localIntersectionPoint
void setEnd(const osg::Vec3d &end)
osg::Vec3d getWorldIntersectPoint() const
std::vector< unsigned int > IndexList
Intersection getFirstIntersection()
osg::Vec3 localIntersectionNormal
std::vector< Node * > NodePath
Shader generator framework.
Intersections & getIntersections()
void setStart(const osg::Vec3d &start)