summaryrefslogtreecommitdiff
path: root/body/m12_lense_holder.scad
diff options
context:
space:
mode:
Diffstat (limited to 'body/m12_lense_holder.scad')
-rw-r--r--body/m12_lense_holder.scad32
1 files changed, 29 insertions, 3 deletions
diff --git a/body/m12_lense_holder.scad b/body/m12_lense_holder.scad
index 64165a8..5907720 100644
--- a/body/m12_lense_holder.scad
+++ b/body/m12_lense_holder.scad
@@ -1,4 +1,5 @@
use <helpers.scad>
+include <veye_imx287.scad>
// m12 cam holder size
$m12_lense_holder_size = 13;
@@ -60,7 +61,30 @@ module m12_lense_holder_wo_holes(
module m12_lense_holder_base()
{
- m12_lense_holder_wo_holes(th = 0.001, bh = 0.001);
+ //m12_lense_holder_wo_holes(th = 0.001, bh = 0.001);
+ $S = $m12_lense_holder_size;
+ //$cube_size = [$S, $S, 1];
+ $cube_size = [veye_imx287_pcb_w, $S, 1];
+
+ rotate([-90, 0, 0])
+ {
+ // bottom cube
+ translate([0, 0, -$cube_size[2] / 2])
+ cube($cube_size, center = true);
+ }
+}
+
+module m12_lense_holder_top()
+{
+ $S = $m12_lense_holder_size;
+
+ rotate([-90, 0, 0])
+ {
+ // bottom cube
+ $size = [veye_imx287_pcb_w, 1, 1];
+ translate([0, -$S / 2 - 1 / 2, -1 / 2])
+ cube($size, center = true);
+ }
}
module m12_lense_holder_holes()
@@ -102,5 +126,7 @@ module m12_lense_holder()
}
}
-//m12_lense_holder();
-//m12_lense_holder_wo_holes(); \ No newline at end of file
+*m12_lense_holder();
+*m12_lense_holder_wo_holes();
+*m12_lense_holder_base();
+*m12_lense_holder_top(); \ No newline at end of file