Beispiel #1
0
 public void setBasis(Vector3[] newBasis)
 {
     Basis = Cylinder.Basis = Sphere.Basis = Triangle.Basis = Hypercube.Basis = newBasis;
     axises = new Axises(Constants.axisPosition,device);
     axises.paint(Constants.AxisColor);
     Hypercube.setCamera = true;
     cube = new Hypercube(Constants.SphereColor, Constants.CylinderColor, device);
     Invalidate();
 }
Beispiel #2
0
        public void updateGraphics(Color SphereColor,Color CylinderColor,Color OldSphereColor,Color OldCylinderColor)
        {
            if (Basis != null)
            {
                axises = new Axises(Constants.axisPosition,device);
                axises.paint(Constants.AxisColor);
                //string[] cubants = cube.cubants.ToArray();
                //Color[] cubantColors = cube.cubantColors.ToArray();
                //cube = new Hypercube(Constants.SphereColor, Constants.CylinderColor, device);
                cube.pant(SphereColor, CylinderColor, OldSphereColor, OldCylinderColor);
                //for (int i = 0; i < cubants.Length; i++)
                //{
                //   cube.setCubant(cubants[i], cubantColors[3 * i], cubantColors[3 * i + 1], cubantColors[3 * i + 2]);
                //}

            }
            Invalidate();
        }