Exemplo n.º 1
0
        internal void DebugPrint(TextWriter tw)
        {
            tw.WriteLine("Base Face {0}:", Id);
            tw.Write("  Pole:");
            PuzzleStructure.PrintVec(Pole, tw, false);
            tw.WriteLine();
            tw.WriteLine("  NCutAxes: {0}", NCutAxes);
            tw.Write("  CutAxes:");
            PuzzleStructure.PrintIArr(CutAxes, tw);
            tw.WriteLine();

            /*
             * tw.Write("  AxesLayers:");
             * PuzzleStructure.PrintIArr(AxisLayers,tw);
             * tw.WriteLine();*/
            tw.WriteLine("  NStickers: {0}", NStickers);
            for (int i = 0; i < NStickers; i++)
            {
                tw.Write("Sticker {0}: NV={1}, NE={2}, NF={3}, Ctr=",
                         i, StickerMesh[i].NV, StickerMesh[i].NE, StickerMesh[i].NF);
                PuzzleStructure.PrintVec(StickerMesh[i].Ctr, tw, false);
                tw.Write(" Mask:");
                for (int j = 0; j < NCutAxes; j++)
                {
                    tw.Write(" {0}", StickerMask[i, j]);
                }
                tw.WriteLine();
            }
        }
Exemplo n.º 2
0
 internal void DebugPrint(TextWriter tw)
 {
     tw.Write("  Twist");
     PuzzleStructure.PrintVec(Dir, tw, true);
     tw.WriteLine("    Order={0}", Order);
     tw.WriteLine("    Map:");
     for (int i = 0; i < Map.Length; i++)
     {
         if (Map[i] != null)
         {
             tw.Write("      Level {0}:", i);
             PuzzleStructure.PrintIArr(Map[i], tw);
             tw.WriteLine();
         }
     }
     tw.WriteLine("    InvMap:");
     for (int i = 0; i < InvMap.Length; i++)
     {
         if (InvMap[i] != null)
         {
             tw.Write("      Level {0}:", i);
             PuzzleStructure.PrintIArr(InvMap[i], tw);
             tw.WriteLine();
         }
     }
 }
Exemplo n.º 3
0
 internal void DebugPrint(TextWriter tw)
 {
     tw.WriteLine("Face {0}:", Id);
     tw.WriteLine("  Base: {0}", Base.Id);
     tw.Write("  Pole:");
     PuzzleStructure.PrintVec(Pole, tw, false);
     tw.WriteLine();
     tw.Write("  CutAxes:");
     PuzzleStructure.PrintIArr(CutAxes, tw);
     tw.WriteLine();
     tw.WriteLine("  First Sticker: {0}", FirstSticker);
 }