diff options
| author | Nikita Kostovsky <nikita@kostovsky.me> | 2026-01-25 13:07:05 +0100 |
|---|---|---|
| committer | Nikita Kostovsky <nikita@kostovsky.me> | 2026-01-25 13:07:05 +0100 |
| commit | 3939d642549b13760e53686b516e48022f37eb10 (patch) | |
| tree | 3b115fa8378b73b525618bcbd61651f7459616fa /body/m12_lense_holder.scad | |
| parent | d2df7e752e422bca585342162c40f6fc256b2103 (diff) | |
try another way for laser/m12 lense holders
Diffstat (limited to 'body/m12_lense_holder.scad')
| -rw-r--r-- | body/m12_lense_holder.scad | 32 |
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 |
