From 3939d642549b13760e53686b516e48022f37eb10 Mon Sep 17 00:00:00 2001 From: Nikita Kostovsky Date: Sun, 25 Jan 2026 13:07:05 +0100 Subject: try another way for laser/m12 lense holders --- body/m12_lense_holder.scad | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) (limited to 'body/m12_lense_holder.scad') 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 +include // 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 -- cgit v1.2.3-70-g09d2