diff options
Diffstat (limited to 'body/m12_lense_holder.scad')
| -rw-r--r-- | body/m12_lense_holder.scad | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/body/m12_lense_holder.scad b/body/m12_lense_holder.scad index 05ff757..64165a8 100644 --- a/body/m12_lense_holder.scad +++ b/body/m12_lense_holder.scad @@ -20,10 +20,14 @@ $m12_lense_holder_r_hole_offset = [$m12_lense_holder_d_btw_holes / 2, 0, 0]; $m12_lense_holder_lense_hole_diameter = 12; // m12 lense holder without holes -module m12_lense_holder_wo_holes() +// th - height of top round part of m12 lense holder +//module m12_lense_holder_wo_holes(th = $m12_lense_holder_top_h) +module m12_lense_holder_wo_holes( + th = $m12_lense_holder_top_h, + bh = $m12_lense_holder_bottom_h) { $S = $m12_lense_holder_size; - $cube_size = [$S, $S, $m12_lense_holder_bottom_h]; + $cube_size = [$S, $S, bh]; rotate([-90, 0, 0]) { @@ -33,7 +37,7 @@ module m12_lense_holder_wo_holes() // top cylinder translate([0, 0, $cube_size[2]]) - cylinder($fn=diameterToFn($S), h = $m12_lense_holder_top_h, d = $S); + cylinder($fn=diameterToFn($S), h = th, d = $S); // screw holes, outer body to cut from hull() @@ -41,18 +45,24 @@ module m12_lense_holder_wo_holes() translate($m12_lense_holder_l_hole_offset) cylinder( $fn = diameterToFn($m12_lense_holder_sh_outer_d), - h = $m12_lense_holder_bottom_h, + h = bh, d = $m12_lense_holder_sh_outer_d); translate($m12_lense_holder_r_hole_offset) cylinder( $fn = diameterToFn($m12_lense_holder_sh_outer_d), - h = $m12_lense_holder_bottom_h, + h = bh, d = $m12_lense_holder_sh_outer_d); } } } + +module m12_lense_holder_base() +{ + m12_lense_holder_wo_holes(th = 0.001, bh = 0.001); +} + module m12_lense_holder_holes() { rotate([-90, 0, 0]) |
