"vincent Sauvage" writes: > Hi, > > i construct some geometry (with setVertexArray, addPrimitiveSet, ...) > > when i call getshape() from this geometry, it return me null pointer ? > > could anyone tell me why ? >
Because what you create with setVertexArray, addPrimitiveSet... is a osg::Geometry, not a osg::ShapeDrawable. They are different objects inheriting from osg::Drawable. -- Alberto _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

