OSG
pipixiaodan
这个作者很懒,什么都没留下…
展开
-
OSG画折线程序函数总结
osgUtil::LineSegmentIntersector::Intersections Intersection数组 osgUtil::LineSegmentIntersector::Intersection computeIntersections(x,y,intersections) intersections得到所有相交的点 push_back()加进数组 pop_back()弹出数组原创 2015-04-16 15:13:34 · 587 阅读 · 0 评论 -
双面光照
//双面光照 osg::StateSet* state = pGeom->getOrCreateStateSet(); osg::LightModel* plm= new osg::LightModel; plm->setTwoSided(true); state->setAttributeAndModes(plm,osg::StateAttribute::ON);原创 2015-04-16 15:13:57 · 905 阅读 · 0 评论 -
设置线宽
osg::LineWidth* lw = new osg::LineWidth( 3.f ); state->setAttribute( lw );原创 2015-04-16 15:13:59 · 967 阅读 · 0 评论 -
VECTOR FIND()
vector::iterator s=find(array.begin(),array.end(),50);第一个参数是array的起始地址,第二个参数是array的结束地址,第三个参数是需要查找的值 if( s !=array.end())//找到 cout else cout原创 2015-04-16 15:13:54 · 315 阅读 · 0 评论