1 #ifndef POLYLINEINTERSECTOR_H 2 #define POLYLINEINTERSECTOR_H 5 #include <osgUtil/LineSegmentIntersector> 21 void setOffset(
float offset);
22 float getOffset()
const;
23 void getHitIndices(
int& first,
int& last)
const;
25 virtual Intersector* clone( osgUtil::IntersectionVisitor& iv );
26 virtual void intersect(osgUtil::IntersectionVisitor& iv, osg::Drawable* drawable);
29 virtual bool isRightPrimitive(
const osg::Geometry* geometry);
32 std::vector<unsigned int> m_hitIndices;
35 #endif // POLYLINEINTERSECTOR_H A class that allows to catch intersections with line loops and polyline OpenGL types. It uses shortest distance between the cast ray and the geometry line which is calculated as a distance between skew lines. In addition, it filters out the geometries whose primitive sets are different than line-types.
Definition: PolyLineIntersector.h:13