#include <Windows.h>
#include <osgViewer/Viewer>
#include <osgDB/ReadFile>
#include <osgGA/GUIEventAdapter>
#include <osgViewer/ViewerEventHandlers>
#include <osgGA/TrackballManipulator>
#include <osg/Geode>
#include <osg/ShapeDrawable>
#include <osg/Material>
#include <osg/StateSet>
#include <osg/Texture2D>
#include <osg/Image>
#include <osg/LineWidth>
#include <osgUtil/IntersectionVisitor>
#include <iostream>
// 画正方体
osg::ref_ptr<osg::Geode> CreatBox()
{
osg::ref_ptr<osg::Geode> geode = new osg::Geode;
//geode