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

bottom();

translate([0, 0, 0]){
    rotate([0,-90,0]){
        side();
    }
}
translate([nestwidth + plankthick, 0, 0]){
    rotate([0,-90,0]){
        hingedside();
    }
}

translate([-plankthick, -plankthick, 0]){
    rotate([0,270,270]){
        front();
    }
}

translate([-plankthick, nestwidth, 0]){
    rotate([0,270,270]){
        back();
    }
}

translate([nestwidth/2, -overhang-plankthick, bottomtohole + plankthick + holediameter + ( ( nestwidth + ( 2 * plankthick ) ) / 2)]){
    rotate([0,90+45,0]){
        translate([nestwidth + (0* plankthick),0,-plankthick]){
            rotate([0,0,90]){
                roofleft();
            }
        }
    }
}

translate([nestwidth/2, -overhang-plankthick, bottomtohole + plankthick + holediameter + ( ( nestwidth + ( 2 * plankthick ) ) / 2)]){
    rotate([0,180+45,0]){
        translate([0,0,-plankthick]){
            rotate([0,0,90]){
                roofright();
            }
        } 
    }
}

