[osg-users] Basic Geometry

Johan Johnsson eslave at gmail.com
Fri Jul 27 12:35:37 PDT 2007


Hey !

How do i reach the basic geometry like spheres, box and cylinders?
I just want to connect a base geometry to a geode and print it on the 
screen without messing with vertices and indices. I tried to do like 
this basicly:

osg::Box box = new osg::Box( osg::vec3(0,0,0),  1.0f );
osg::ShapeDrawable* unitCubeDrawable = new osg::ShapeDrawable(unitCube);

- it didnt work out since ShapeDrawable don't seem to exist anymore.


Greatful for your help folks




More information about the osg-users mailing list