|
发表于 2014-4-30 09:37:18
|
显示全部楼层
本帖最后由 buaahc 于 2014-4-30 09:42 编辑
osg::ref_ptr<osg:rawElementsUInt> lines = new osg::DrawElementsUInt(osg::DrawElementsUInt:INES,0);
lines ->push_back(0);
lines ->push_back(1);
lines ->push_back(100);
lines ->push_back(101);
......//插值你需要连接的点,当然需要连接的两点,要同时插值
pGeometry->addPrimitiveSet(lines );
pGeode->addDrawable(pGeometry);
|
|