You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
77 lines
1.8 KiB
77 lines
1.8 KiB
/////////////////////////////////////////////////////////////////////////////////
|
|
// Main file to assemble everything.
|
|
//
|
|
// Author: Maximilian Stiefel
|
|
// Last modification: 20.07.2017
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
// Includes
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Dimesnions
|
|
include <dimensions.scad>
|
|
use <dimensions.scad>
|
|
|
|
// Module for raw box without any lids
|
|
include <box.scad>
|
|
use <box.scad>
|
|
|
|
// Module for raw box without any lids
|
|
include <lid_l_r.scad>
|
|
use <lid_l_r.scad>
|
|
|
|
// Module for raw box without any lids
|
|
include <lid_f_b.scad>
|
|
use <lid_f_b.scad>
|
|
|
|
// Module for raw box without any lids
|
|
include <lid_t_b.scad>
|
|
use <lid_t_b.scad>
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
// 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);
|
|
//}
|
|
|