当场景中存在一些孤立的点(POINT),默认是被裁减掉的,因为细节裁剪被默认打开。
可以通过以下语句关闭细节裁剪
osg::CullStack::CullingMode cullingMode = viewer.getCamera()->getCullingMode();
cullingMode &= ~(osg::CullStack::SMALL_FEATURE_CULLING);
viewer.getCamera()->setCullingMode(cullingMode);
当场景中存在一些孤立的点(POINT),默认是被裁减掉的,因为细节裁剪被默认打开。
可以通过以下语句关闭细节裁剪
osg::CullStack::CullingMode cullingMode = viewer.getCamera()->getCullingMode();
cullingMode &= ~(osg::CullStack::SMALL_FEATURE_CULLING);
viewer.getCamera()->setCullingMode(cullingMode);
转载于:https://www.cnblogs.com/coolbear/archive/2013/05/14/3077780.html