///////////////////////////////////////////////////////////////////////////////// // Main file to assemble everything. // // Author: Maximilian Stiefel // Last modification: 20.07.2017 ///////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////// // Includes ///////////////////////////////////////////////////////////////////////////////// // Dimesnions include use // Module for raw box without any lids include use // Module for raw box without any lids include use // Module for raw box without any lids include use // Module for raw box without any lids include use //////////////////////////////////////////////////////////////////////////////// // Vars ///////////////////////////////////////////////////////////////////////////////// // 0 = put lids, 1 = remove lids close = 0; // Set minimum angle of a fragment $fa = 0.5; // Set minimum size of a fragment $fs = 0.5; //////////////////////////////////////////////////////////////////////////////// // Action ///////////////////////////////////////////////////////////////////////////////// //difference() //{ union() { color(myColor1) { // Lid right translate([housing_outside_width/2 + close*20, 0, 0]) rotate([0, 0, 0]) lid_l_r(); // Lid left translate([-housing_outside_width/2 - close*20, 0, 0]) rotate([0, 180, 0]) lid_l_r(); // Lid front translate([0, -housing_outside_depth/2 - close*20, 0]) rotate([90, 0, 0]) lid_f_b(1,0); // Lid back translate([0, +housing_outside_depth/2 + close*20, 0]) rotate([-90, 180, 0]) lid_f_b(1,1); color(myColor1, 0.8) box(); } } //translate([-200, 0, 0]) //cube([400,400,400], center=true); //}