//颜色
osg::Vec4Array * colors = new osg::Vec4Array;
colors->push_back(color);
osg::Geometry * line = new osg::Geometry;
line->setVertexArray(vert);
line ->setColorArray(colors);
line ->setColorBinding(osg::Geometry::BIND_PER_PRIMITIVE);
line->addPrimitiveSet(new osg:rawArrays(osg:rimitiveSet:INES, 0, vert->size()));