指针的建议写法:osg::ref_ptrgeode=new osg::geode(); 对比的原始写法osg::Geode* geode=new osg::geode(); osgcookbook中193页