Removed unused ShapesToGeometriesVisitor.
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14823 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
parent
6cff8650f2
commit
31488eeba1
@ -1156,18 +1156,3 @@ osg::Geode* convertShapeToGeode(const osg::Shape& shape, const osg::Tessellation
|
||||
geode->addDrawable( convertShapeToGeometry(shape,hints,color) );
|
||||
return geode;
|
||||
}
|
||||
|
||||
|
||||
void ShapesToGeometriesVisitor::apply( osg::Geode& geode )
|
||||
{
|
||||
for(unsigned int i=0; i<geode.getNumDrawables(); ++i)
|
||||
{
|
||||
osg::ShapeDrawable* drawable = dynamic_cast<osg::ShapeDrawable*>( geode.getDrawable(i) );
|
||||
if(drawable==NULL)
|
||||
continue;
|
||||
osg::Geometry* newGeom = convertShapeToGeometry(*(drawable->getShape()), _hints);
|
||||
newGeom->setStateSet( drawable->getStateSet() );
|
||||
geode.setDrawable( i, newGeom );
|
||||
}
|
||||
traverse(geode);
|
||||
}
|
||||
|
@ -93,17 +93,5 @@ osg::Geode* convertShapeToGeode(const osg::Shape& shape, const osg::Tessellation
|
||||
// osg::ref_ptr<osg::Geometry> capsuleGeometry = convertShapeToGeometry(*shape.get(), tessHints.get());
|
||||
// osg::ref_ptr<osg::Geometry> redCapsuleGeometry = convertShapeToGeometry(*shape.get(), tessHints.get(), osg::Vec4(1.0,0.0,0.0,1.0) );
|
||||
|
||||
class ShapesToGeometriesVisitor : public osg::NodeVisitor
|
||||
{
|
||||
public:
|
||||
ShapesToGeometriesVisitor( osg::TessellationHints* hints )
|
||||
: osg::NodeVisitor( osg::NodeVisitor::TRAVERSE_ALL_CHILDREN ), _hints(hints)
|
||||
{
|
||||
}
|
||||
void apply( osg::Geode& geode);
|
||||
|
||||
protected:
|
||||
osg::TessellationHints* _hints;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user