[osg-users] Color fill a primitiveSet

2009-12-30 Thread Jody Cole
Hi, I have created a triangle with, where a,b and c are the (x,y,z) coordinates of the 3 vertices osg::ref_ptrosg::Geometry geom = new osg::Geometry; osg::ref_ptrosg::Vec3Array v = new osg::Vec3Array; geom-setVertexArray( v.get() ); v-push_back(a); v-push_back(b); v-push_back(c);

Re: [osg-users] Color fill a primitiveSet

2009-12-30 Thread Gordon Tomlinson
@lists.openscenegraph.org Subject: [osg-users] Color fill a primitiveSet Hi, I have created a triangle with, where a,b and c are the (x,y,z) coordinates of the 3 vertices osg::ref_ptrosg::Geometry geom = new osg::Geometry; osg::ref_ptrosg::Vec3Array v = new osg::Vec3Array; geom-setVertexArray( v.get() ); v