summaryrefslogtreecommitdiff
path: root/body/m12_lense_holder.scad
diff options
context:
space:
mode:
authorNikita Kostovsky <nikita@kostovsky.me>2026-01-08 22:32:58 +0100
committerNikita Kostovsky <nikita@kostovsky.me>2026-01-08 22:32:58 +0100
commit6bc0a3523b4711437b96aeebba44c4e9931e134d (patch)
tree62600cbe29c760fcb0f13346221bacc4bb91634e /body/m12_lense_holder.scad
parent64374d0ce953904a0ab3ddbcd54aca6dcba9cbda (diff)
add missing files; add draft camera_lense holder
Diffstat (limited to 'body/m12_lense_holder.scad')
-rw-r--r--body/m12_lense_holder.scad20
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])