[osg-users] Basic Geometry

Miguel Martinez rodilla at robotica.uv.es
Fri Jul 27 16:23:52 PDT 2007


hi Johan

look at the osgshapes example.

Johan Johnsson escribió:
> 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
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>   



More information about the osg-users mailing list