コード例 #1
0
        public Form1()
        {
            InitializeComponent();

            SceneContainer sceneContainer = new SceneContainer();// paint container

            addRoomObjects(sceneContainer);

            sceneContainer.AddChild(new Axies());                                                 // paints the x,y and z axis
            arcBallEffect = new ArcBallEffect(sceneControl1.Scene.CurrentCamera as LookAtCamera); // implements rotation per mouse move
            sceneContainer.AddEffect(arcBallEffect);
            sceneControl1.Scene.SceneContainer.AddChild(sceneContainer);
            arcBallEffect.SetViewMode(ViewMode.NO);// look diagonaly on the object

            // Hide bounding box
            toolStripButtonShowBoundingVolumes_Click(this, new EventArgs());
        }