14#ifndef OSGUTIL_SMOOTHINGVISITOR
15#define OSGUTIL_SMOOTHINGVISITOR 1
const double PI
Definition Math:30
The osgUtil library provides general purpose utility classes such as update, cull and draw traverses,...
Definition NodeVisitor:25
Visitor for type safe operations on osg::Nodes.
Definition NodeVisitor:82
double getCreaseAngle() const
Definition SmoothingVisitor:45
static void smooth(osg::Geometry &geoset, double creaseAngle=osg::PI)
smooth geoset by creating per vertex normals.
SmoothingVisitor()
default to traversing all children.
virtual ~SmoothingVisitor()
double _creaseAngle
Definition SmoothingVisitor:49
void setCreaseAngle(double angle)
set the maximum angle, in radians, at which angle between adjacent triangles that normals are smoothe...
Definition SmoothingVisitor:44
virtual void apply(osg::Geometry &geom)
apply smoothing method to all geometries.
#define OSGUTIL_EXPORT
Definition Export:40