diff options
Diffstat (limited to 'body/holes.scad')
| -rw-r--r-- | body/holes.scad | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/body/holes.scad b/body/holes.scad index 5074ddc..86a503a 100644 --- a/body/holes.scad +++ b/body/holes.scad @@ -19,10 +19,14 @@ m2_head_diameter = 3.75; m2_head_height = 1.9; m2 = 2; +m4_head_diameter = 6.8; +m4_head_height = 3.9; +m4 = 4; + // some default values // TODO: propagate everywhere -hole_insert_height = 4; -hole_insert_diameter = 4; +m2_hole_insert_height = 4; +m2_hole_insert_diameter = 4; padding_around_insert = 2; @@ -149,13 +153,13 @@ module screw_hole(m, id, il, hd, hh, hs, wt = $scannerBodyWallThicknessMm) } } -function padded_hole_d(hd = hole_insert_diameter) = +function padded_hole_d(hd = m2_hole_insert_diameter) = hd + padding_around_insert * 2; // h - height // hd - hole diameter // TODO: support usual holes, not only hot inserts -module hole_holder(h, hd = hole_insert_diameter) +module hole_holder(h, hd = m2_hole_insert_diameter) { d = padded_hole_d(hd); cube_size = [d * 2, d / 2, h]; @@ -187,12 +191,14 @@ module hole_holder(h, hd = hole_insert_diameter) // hs - hole side, see values above for details module hole_holder_hot_inserts( h = main_frame_width_x, - hd = hole_insert_diameter, + hd = m2_hole_insert_diameter, hs) { d = hd + padding_around_insert * 2; rotate(hs) + // TODO: rewrite or create new holes closer to walls (d / 2) + //translate([0, 0, -d / 2]) difference() { hole_holder(h = h, hd = hd); @@ -204,7 +210,7 @@ module hole_holder_hot_inserts( screw_hole( m = m2, id = hd, - il = hole_insert_height, + il = m2_hole_insert_height, hd = m2_head_diameter, hh = m2_head_height, hs = hole_side_left); @@ -213,7 +219,7 @@ module hole_holder_hot_inserts( screw_hole( m = m2, id = hd, - il = hole_insert_height, + il = m2_hole_insert_height, hd = m2_head_diameter, hh = m2_head_height, hs = hole_side_right); @@ -223,17 +229,19 @@ module hole_holder_hot_inserts( *hole_holder_hot_inserts( h = main_frame_width_x, - hd = hole_insert_diameter, + hd = m2_hole_insert_diameter, hs = hole_side_top); *screw_hole( m = m2, - id = hole_insert_diameter, - il = hole_insert_height * 2, + id = m2_hole_insert_diameter, + il = m2_hole_insert_height * 2, hd = m2_head_diameter, hh = m2_head_height, hs = hole_side_bottom); - + //front_glass_hole(gw = 26.6, gh = 19.6, gt = 2, gcr = 1); +//front_glass_hole(gw = 26.6, gh = 19.6, gt = 2, gcr = 1); + +//screw_hole(2); -//screw_hole(2);
\ No newline at end of file |
