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);
@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
2 matches
Mail list logo