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.
63 lines
1.8 KiB
63 lines
1.8 KiB
7 years ago
|
/////////////////////////////////////////////////////////////////////////////////
|
||
|
// Module for the left and right lid.
|
||
|
//
|
||
|
// Author: Maximilian Stiefel
|
||
|
// Last modification: 28.07.2017
|
||
|
/////////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
/////////////////////////////////////////////////////////////////////////////////
|
||
|
// Includes
|
||
|
/////////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
// Dimesnions
|
||
|
include <dimensions.scad>
|
||
|
use <dimensions.scad>
|
||
|
|
||
|
// Module to make a nice round box
|
||
|
include <roundy.scad>
|
||
|
use <roundy.scad>
|
||
|
|
||
|
// Module for screw holes
|
||
|
include <screw_holes.scad>
|
||
|
use <screw_holes.scad>
|
||
|
|
||
|
// Module for screw holes
|
||
|
include <screw_sinkings.scad>
|
||
|
use <screw_sinkings.scad>
|
||
|
|
||
|
|
||
|
module lid_l_r()
|
||
|
{
|
||
|
/////////////////////////////////////////////////////////////////////////
|
||
|
// Vars
|
||
|
/////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
|
||
|
/////////////////////////////////////////////////////////////////////////
|
||
|
// Action
|
||
|
/////////////////////////////////////////////////////////////////////////
|
||
|
rotate([0, 90, 0])
|
||
|
translate([0, 0, -lids_depth/2])
|
||
|
rotate([180, 0, 0])
|
||
|
difference()
|
||
|
{
|
||
|
// Main body for the lid
|
||
|
union()
|
||
|
{
|
||
|
roundy(lid_l_r_x - allowance05, lid_l_r_y - allowance05, lids_depth);
|
||
|
translate([0, 0, housing_thickness/2 -0.01])
|
||
|
cube([lid_l_r_height - allowance05, lid_l_r_width - allowance05, housing_thickness - lids_depth], center = true);
|
||
|
echo(housing_thickness=housing_thickness);
|
||
|
echo(lids_depth=lids_depth);
|
||
|
}
|
||
|
|
||
|
union()
|
||
|
{
|
||
|
// Cut out cylindric holes
|
||
|
screw_holes(lid_l_r_holes_y, lid_l_r_holes_x, drill_dia_m3, 2*lids_depth);
|
||
|
translate([0, 0, -lids_depth/2 + drill_sinking_height_m3/2 + 0.5])
|
||
|
screw_sinkings(lid_l_r_holes_y, lid_l_r_holes_x, drill_sinking_dia1_m3, drill_sinking_dia2_m3, drill_sinking_height_m3);
|
||
|
}
|
||
|
}
|
||
|
}
|