public void rough()
	{
		//int first = (int)Math.floor(Math.log(terrain.length)/Math.log(2D));
		int first = 3;
		if (Math.pow(2,first) == terrain.length) first--;
		while (true)
		{
			int width = (int)Math.pow(2, first);
			//println("Yoooo " + width);
			for (int i = 0; i < terrain.length - width; i += width)
			{
				for (int j = 0; j < terrain.length - width; j += width)
				{
					if (i + width >= terrain.length || j + width >= terrain.length) continue;
					//println(i + " " + j + " " + width);
					//if (devZero(i,j,width))
					{
						//print("-----------");
						dS(i,j,width,10,0.5);
					}
					//println(dS(i,j,width,10,0.5).size());
				}
			}
			if (width <= 8) break;
			width /= 2;
		}
	}