include <dimensions.scad>

include <frontback.scad>
include <side.scad>
use <bottom.scad>
include <roof.scad>
use <sawcut.scad>

front();
translate([frontbackheight, 0, 0])
	sawcut();
translate([frontbackheight + bladewidth, 0, 0])
	back();
translate([frontbackheight + bladewidth + frontbackheight, 0, 0])
	sawcut();
translate([frontbackheight + bladewidth + frontbackheight + bladewidth, 0, 0])
	roofleft();
translate([frontbackheight + bladewidth + frontbackheight + bladewidth + rooflength, 0, 0])
	sawcut();
translate([frontbackheight + bladewidth + frontbackheight + bladewidth + rooflength + bladewidth, 0, 0])
	roofright();
translate([frontbackheight + bladewidth + frontbackheight + bladewidth + rooflength + bladewidth + rooflength, 0, 0])
	sawcut();
translate([frontbackheight + bladewidth + frontbackheight + bladewidth + rooflength + bladewidth + rooflength + bladewidth, 0, 0])
	side();
translate([frontbackheight + bladewidth + frontbackheight + bladewidth + rooflength + bladewidth + rooflength + bladewidth + sidelength, 0, 0])
	sawcut();
translate([frontbackheight + bladewidth + frontbackheight + bladewidth + rooflength + bladewidth + rooflength + bladewidth + sidelength + bladewidth, 0, 0])
	hingedside();
translate([frontbackheight + bladewidth + frontbackheight + bladewidth + rooflength + bladewidth + rooflength + bladewidth + sidelength + bladewidth + sidelength, 0, 0])
	sawcut();
translate([frontbackheight + bladewidth + frontbackheight + bladewidth + rooflength + bladewidth + rooflength + bladewidth + sidelength + bladewidth + sidelength + bladewidth, 0, 0])
	bottom();

echo ("FRONTBACKHEIGHT ", nestwidth);
echo("#### Total board length = ", 2*frontbackheight + 6*bladewidth + 2*sidelength + 2*rooflength + nestwidth, " Max width = ", frontbackwidth);
