osg创建立方体
osg::Geode* createBox(double minX, double maxX, double minY, double maxY, double minZ, double maxZ) { double X1 = minX; double X2 = maxX; double Y1 = minY; double Y2 = maxY; double Z1 = minZ; double Z2 = maxZ; osg::Geode* geode = new osg::Geode(); osg::ref_ptr<osg::TessellationHints> hits2 = new osg::TessellationHints; geode->addDrawable(new osg::ShapeDrawable(new osg::Box(osg::Vec3((X1 + X2)*0.5f, (Y1 + Y2)*0.5f, 0.0f), 20.0f), hits2)); return geode; }
#####################
标签:Geode,创建,geode,double,立方体,new,osg From: https://www.cnblogs.com/herd/p/17224252.html