Exemplo n.º 1
0
        public void TestThing()
        {
            Cadmio.Plane XYPlane = new Cadmio.Plane(0, new Vector3(1, 1, 0));
            Cube         cube    = new Cube();

            this.AddGLObject(cube);
            Cadmio.Origin Origin = new Cadmio.Origin(1);
            Cadmio.Axis   XAxis  = new Cadmio.Axis(2, new Vector3(1, 0, 0), Origin.Position);

            Cadmio.Point PointA = new Cadmio.Point(3, new Vector3(2, 2, 2));

            AddGLObject(Origin);
            AddGLObject(XAxis);
            AddGLObject(XYPlane);
            AddGLObject(PointA);


            Console.WriteLine(XYPlane.Name);
            Redraw();
        }
Exemplo n.º 2
0
        public void TestThing()
        {
            Cadmio.Plane XYPlane = new Cadmio.Plane (0, new Vector3 (1, 1, 0));
            Cube cube = new Cube ();
            this.AddGLObject (cube);
            Cadmio.Origin Origin = new Cadmio.Origin (1);
            Cadmio.Axis XAxis = new Cadmio.Axis (2, new Vector3 (1, 0, 0), Origin.Position);

            Cadmio.Point PointA = new Cadmio.Point (3, new Vector3 (2, 2, 2));

            AddGLObject (Origin);
            AddGLObject (XAxis);
            AddGLObject (XYPlane);
            AddGLObject (PointA);

            Console.WriteLine (XYPlane.Name);
            Redraw ();
        }