It works!
This commit is contained in:
@@ -13,6 +13,10 @@ magnet_diameter=3;
|
||||
magnet_thickness=1;
|
||||
magnet_tolerance=0.2;
|
||||
|
||||
// hub hole size
|
||||
hub_hole_size=15;
|
||||
hub_size_tweak=1;
|
||||
|
||||
// DIN rail mount
|
||||
use_din_mount=1; // 0 to omit
|
||||
|
||||
@@ -51,7 +55,7 @@ module body()
|
||||
translate([0, overall_depth/2, overall_height/2])
|
||||
rotate([0, 90, 0])
|
||||
rotate_extrude($fn=360) // chamfer tool
|
||||
polygon([[0, 0], [8, 0], [7.5, .5], [8, 1], [0, 1]]);
|
||||
polygon([[0, 0], [hub_hole_size/2+.5, 0], [hub_hole_size/2, .5], [hub_hole_size/2+.5, 1], [0, 1]]);
|
||||
|
||||
// parts window on top
|
||||
translate([1+tolerance/2, 8, overall_height-1-tape_thickness-tolerance])
|
||||
@@ -172,26 +176,30 @@ module lid()
|
||||
{
|
||||
difference()
|
||||
{
|
||||
union()
|
||||
union() // basic disc and hub
|
||||
{
|
||||
cylinder(d=overall_depth-5, h=1, $fn=360);
|
||||
cylinder(d=15, h=overall_width, $fn=360);
|
||||
cylinder(d=hub_hole_size+hub_size_tweak, h=overall_width, $fn=360);
|
||||
}
|
||||
cylinder(d=12, h=overall_width, $fn=360);
|
||||
translate([-1, -8, 1])
|
||||
|
||||
translate([-1, -8, 1]) // cut hub into pieces for flexibility
|
||||
cube([2, 16, overall_width]);
|
||||
translate([-8, -1, 1])
|
||||
cube([16, 2, overall_width]);
|
||||
|
||||
translate([0, 0, overall_width-1])
|
||||
rotate_extrude($fn=360) // inverse of the previous chamfer tool
|
||||
polygon([[9, 0], [7.5, 0], [7, .5], [7.5, 1], [9, 1]]);
|
||||
polygon([[overall_depth/2, 0], [(hub_hole_size+hub_size_tweak)/2, 0], [(hub_hole_size+hub_size_tweak)/2-.5, .5], [(hub_hole_size+hub_size_tweak)/2, 1], [overall_depth/2, 1]]);
|
||||
|
||||
// cut out windows
|
||||
rotate_extrude(angle=90, $fn=360)
|
||||
polygon([[10, 0], [(overall_depth-5)/2-5, 0], [(overall_depth-5)/2-5, 1], [10, 1], [10, 0]]);
|
||||
polygon([[(hub_hole_size+hub_size_tweak+5)/2, 0], [(overall_depth-5)/2-5, 0], [(overall_depth-5)/2-5, 1], [(hub_hole_size+hub_size_tweak+5)/2, 1], [(hub_hole_size+hub_size_tweak+5)/2, 0]]);
|
||||
rotate([0,0,120])
|
||||
rotate_extrude(angle=90, $fn=360)
|
||||
polygon([[10, 0], [(overall_depth-5)/2-5, 0], [(overall_depth-5)/2-5, 1], [10, 1], [10, 0]]);
|
||||
polygon([[(hub_hole_size+hub_size_tweak+5)/2, 0], [(overall_depth-5)/2-5, 0], [(overall_depth-5)/2-5, 1], [(hub_hole_size+hub_size_tweak+5)/2, 1], [(hub_hole_size+hub_size_tweak+5)/2, 0]]);
|
||||
rotate([0,0,240])
|
||||
rotate_extrude(angle=90, $fn=360)
|
||||
polygon([[10, 0], [(overall_depth-5)/2-5, 0], [(overall_depth-5)/2-5, 1], [10, 1], [10, 0]]);
|
||||
polygon([[(hub_hole_size+hub_size_tweak+5)/2, 0], [(overall_depth-5)/2-5, 0], [(overall_depth-5)/2-5, 1], [(hub_hole_size+hub_size_tweak+5)/2, 1], [(hub_hole_size+hub_size_tweak+5)/2, 0]]);
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user