From 505a2a71e7c81240623b30a74be1660d5a935e3a Mon Sep 17 00:00:00 2001 From: mattmcw Date: Fri, 14 Jul 2023 21:40:03 -0400 Subject: [PATCH] Add magnetic bellows models --- scad/jk_lens_assembly.scad | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scad/jk_lens_assembly.scad b/scad/jk_lens_assembly.scad index bad1c83..e37651c 100644 --- a/scad/jk_lens_assembly.scad +++ b/scad/jk_lens_assembly.scad @@ -87,11 +87,11 @@ module m4BoltNut (bolt = 10, nut = 3.5) { } } -module lensAssemblyBellowsBoard () { +module lensAssemblyBellowsBoard (magnets = false) { //bottom difference () { union () { - rotate([0, 0, 90]) bellows_camera_board(); + rotate([0, 0, 90]) bellows_camera_board(magnets = magnets); translate([0, -XOffset, FrontOffset]) rotate([0, 90, 0]) cylinder(r = R(22), h = XWidth, center = true, $fn = 80); } rotate([-90, 0, 0]) { @@ -362,12 +362,16 @@ module debug () { } } -PART = "lens_assembly_base_z"; +PART = "lens_assembly_bellows_board_magnetic"; if (PART == "lens_assembly_camera_bellows_board") { bellows_camera_board(); +} else if (PART == "lens_assembly_camera_bellows_board_magnetic") { + bellows_camera_board(magnets = true); } else if (PART == "lens_assembly_bellows_board") { lensAssemblyBellowsBoard(); +} else if (PART == "lens_assembly_bellows_board_magnetic") { + lensAssemblyBellowsBoard(magnets = true); } else if (PART == "lens_assembly_threaded_z") { lensAssemblyThreadedZ(); } else if (PART == "lens_assembly_linear_z") {