public TransformTester()
        {
            InitializeComponent();

            #region Make cubes

            CreateCube(_axisCubes, Colors.White, .25d, new Point3D());

            CreateCube(_axisCubes, Colors.Pink, .25d, new Point3D(-10, 0, 0));
            CreateCube(_axisCubes, Colors.Red, .25d, new Point3D(10, 0, 0));

            CreateCube(_axisCubes, Colors.Chartreuse, .25d, new Point3D(0, -10, 0));
            CreateCube(_axisCubes, Colors.Green, .25d, new Point3D(0, 10, 0));

            CreateCube(_axisCubes, Colors.PowderBlue, .25d, new Point3D(0, 0, -10));
            CreateCube(_axisCubes, Colors.Blue, .25d, new Point3D(0, 0, 10));

            #endregion

            // Trackball
            _trackball = new CameraTester.TrackBallRoam_local(_camera);
            _trackball.EventSource = grdViewPort;

            this.Background = SystemColors.ControlBrush;
        }
Esempio n. 2
0
        public TransformTester()
        {
            InitializeComponent();

            #region Make cubes

            CreateCube(_axisCubes, Colors.White, .25d, new Point3D());

            CreateCube(_axisCubes, Colors.Pink, .25d, new Point3D(-10, 0, 0));
            CreateCube(_axisCubes, Colors.Red, .25d, new Point3D(10, 0, 0));

            CreateCube(_axisCubes, Colors.Chartreuse, .25d, new Point3D(0, -10, 0));
            CreateCube(_axisCubes, Colors.Green, .25d, new Point3D(0, 10, 0));

            CreateCube(_axisCubes, Colors.PowderBlue, .25d, new Point3D(0, 0, -10));
            CreateCube(_axisCubes, Colors.Blue, .25d, new Point3D(0, 0, 10));

            #endregion

            // Trackball
            _trackball             = new CameraTester.TrackBallRoam_local(_camera);
            _trackball.EventSource = grdViewPort;

            this.Background = SystemColors.ControlBrush;
        }