|
OpenSceneGraph
3.0.1
|
A smoothing visitor for calculating smoothed normals for osg::GeoSet's which contains surface primitives. More...

Public Member Functions | |
| SmoothingVisitor () | |
| default to traversing all children. | |
| virtual | ~SmoothingVisitor () |
| virtual void | apply (osg::Geode &geode) |
| apply smoothing method to all geode geosets. | |
| void | setCreaseAngle (double angle) |
| set the maximum angle, in radians, at which angle between adjacent triangles that normals are smoothed for edges that greater the shared vertices are duplicated | |
| double | getCreaseAngle () const |
Static Public Member Functions | |
| static void | smooth (osg::Geometry &geoset, double creaseAngle=osg::PI) |
| smooth geoset by creating per vertex normals. | |
Protected Attributes | |
| double | _creaseAngle |
A smoothing visitor for calculating smoothed normals for osg::GeoSet's which contains surface primitives.
default to traversing all children.
| virtual osgUtil::SmoothingVisitor::~SmoothingVisitor | ( | ) | [virtual] |
| virtual void osgUtil::SmoothingVisitor::apply | ( | osg::Geode & | geode | ) | [virtual] |
apply smoothing method to all geode geosets.
Reimplemented from osg::NodeVisitor.
| double osgUtil::SmoothingVisitor::getCreaseAngle | ( | ) | const [inline] |
| void osgUtil::SmoothingVisitor::setCreaseAngle | ( | double | angle | ) | [inline] |
set the maximum angle, in radians, at which angle between adjacent triangles that normals are smoothed for edges that greater the shared vertices are duplicated
| static void osgUtil::SmoothingVisitor::smooth | ( | osg::Geometry & | geoset, |
| double | creaseAngle = osg::PI |
||
| ) | [static] |
smooth geoset by creating per vertex normals.
double osgUtil::SmoothingVisitor::_creaseAngle [protected] |
| Generated at Thu Sep 27 2012 17:03:31 for the OpenSceneGraph by doxygen 1.7.6.1. |