diff --git a/src/osgUtil/PlaneIntersector.cpp b/src/osgUtil/PlaneIntersector.cpp index 32a51d10f..46e239409 100644 --- a/src/osgUtil/PlaneIntersector.cpp +++ b/src/osgUtil/PlaneIntersector.cpp @@ -353,22 +353,20 @@ namespace PlaneIntersectorUtils struct TriangleIntersector { - osg::Plane _plane; - osg::Polytope _polytope; - bool _hit; - osg::ref_ptr _matrix; - bool _recordHeightsAsAttributes; - osg::ref_ptr _em; - bool _limitOneIntersection; + osg::Plane _plane; + osg::Polytope _polytope; + bool _hit; + osg::ref_ptr _matrix; + bool _recordHeightsAsAttributes; + osg::ref_ptr _em; + bool _limitOneIntersection; PolylineConnector _polylineConnector; - - TriangleIntersector() - { - _hit = false; - _limitOneIntersection = false; - } + TriangleIntersector(): + _hit(false), + _recordHeightsAsAttributes(false), + _limitOneIntersection(false) {} void set(const osg::Plane& plane, const osg::Polytope& polytope, osg::RefMatrix* matrix, bool recordHeightsAsAttributes, osg::EllipsoidModel* em) {