Exemplo n.º 1
0
        private static void Main(string[] args)
        {
            Figure Parall = Reader.ReadFigure();
                List<Figure> Figures = Reader.ReadFigureList();

                Orientator dict = new Orientator(Parall);

                foreach (Figure f in Figures)
                {
                    f.FindOrientation(dict);
                    f.TryPack(Parall);
                }

                Figures[0].PackFront(Figures, Parall);

                foreach(Figure f in Figures)
                      Console.WriteLine(f.Sides[0] + " " + f.Sides[1] + " " + f.Location.X + " " + f.Location.Y + " " + f.Location.Z);
        }
Exemplo n.º 2
0
 public void FindOrientation(Orientator dict)
 {
     CorrectOrientation = new Dot(Size.DotDict[dict.Orientation[Color].Item1[0]],
                                  Size.DotDict[dict.Orientation[Color].Item1[1]],
                                  Size.DotDict[dict.Orientation[Color].Item1[2]]);
     Sides = dict.Orientation[Color].Item2;
 }