cherish
|
It allows to catch intersections with point OpenGL types. It uses shortest distance between the cast ray and geometry's vertices. In addition, it filters out the geometries whose primitive sets are different than GL_POINTS. The result primitive index is saved to hit.primitiveIndex
.
More...
#include <PointIntersector.h>
Public Member Functions | |
PointIntersector (const osg::Vec3 &start, const osg::Vec3 &end) | |
PointIntersector (CoordinateFrame cf, double x, double y) | |
PointIntersector (CoordinateFrame cf, const osg::Vec3d &start, const osg::Vec3d &end) | |
virtual Intersector * | clone (osgUtil::IntersectionVisitor &iv) |
virtual void | intersect (osgUtil::IntersectionVisitor &iv, osg::Drawable *drawable) |
![]() | |
PolyLineIntersector (const osg::Vec3 &start, const osg::Vec3 &end) | |
PolyLineIntersector (CoordinateFrame cf, double x, double y) | |
PolyLineIntersector (CoordinateFrame cf, const osg::Vec3d &start, const osg::Vec3d &end) | |
void | setOffset (float offset) |
float | getOffset () const |
void | getHitIndices (int &first, int &last) const |
Protected Member Functions | |
virtual bool | isRightPrimitive (const osg::Geometry *geometry) |
Additional Inherited Members | |
![]() | |
float | m_offset |
std::vector< unsigned int > | m_hitIndices |
It allows to catch intersections with point OpenGL types. It uses shortest distance between the cast ray and geometry's vertices. In addition, it filters out the geometries whose primitive sets are different than GL_POINTS. The result primitive index is saved to hit.primitiveIndex
.