#include "StencilUtils.h"
#include <osg/Stencil>
#include <osg/StencilTwoSided>
#include <osg/Depth>
#include <osg/Drawable>
#include <osg/CopyOp>
#include <osg/CullFace>
#include <osg/MatrixTransform>
#include <osg/Projection>
#include <osg/GLExtensions>
#include <osg/Geode>
#include <osg/Notify>
#include <osgUtil/Tessellator>
#include <algorithm>
Go to the source code of this file.
Define Documentation
#define OFF_AND_PROTECTED osg::StateAttribute::OFF | osg::StateAttribute::PROTECTED |
#define ON_AND_PROTECTED osg::StateAttribute::ON | osg::StateAttribute::PROTECTED |
#define PARALLEL_EPSILON 0.01 |
Function Documentation
static void tessellate |
( |
osg::Geometry * |
geom | ) |
[static] |
Definition at line 486 of file StencilUtils.cpp.
{
osgUtil::Tessellator tess;
tess.setTessellationType( osgUtil::Tessellator::TESS_TYPE_GEOMETRY );
tess.setWindingType( osgUtil::Tessellator::TESS_WINDING_ODD );
tess.retessellatePolygons( *geom );
}