示例#1
0
文件: NBSP.cs 项目: fenixnix/Fractals
 public string PrintBSP(Grid2DInt map)
 {
     foreach (var r in rooms)
     {
         Grid2DPaint.Rect <int>(map, r, 0);
     }
     return(map.Print());
 }
示例#2
0
    public void Init2D()
    {
        grid2D = new Grid2DInt(GridSize, GridSize, 0);
        dla2   = new DLA2D();
        dla2.SetSeedPoint(grid2D, grid2D.Center);

        //Grid2DPaint.Line(grid2D, SrcPoint,DstPoint,LineWidth);

        text.text = grid2D.Print();
        render.Draw(grid2D);
    }
示例#3
0
文件: NBSP.cs 项目: fenixnix/Fractals
        public static string SelfTest()
        {
            Grid2DInt map = new Grid2DInt(64, 64, 255);

            if (map == null)
            {
                Debug.LogError("null map");
            }
            Division(map, new RectInt(0, 0, 64, 64));
            return(map.Print());
        }