From 78073d9e7b062f5f821ee86a26ee786955b4cf47 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 8 Oct 2017 02:17:06 +0100 Subject: [PATCH] poster-tube-lid: wip BayonetCutout rotation thing --- poster-tube-lid.scad | 38 ++++++++++++++++++++++++++++++-------- 1 file changed, 30 insertions(+), 8 deletions(-) diff --git a/poster-tube-lid.scad b/poster-tube-lid.scad index a30a1b4..b2c6590 100644 --- a/poster-tube-lid.scad +++ b/poster-tube-lid.scad @@ -27,6 +27,8 @@ bayo_above_gap = 1.0; bayo_entry = bayo_behind/3; +bayo_slice_size = 10; + // calculated bayo_entry_x = bayo_entry; @@ -110,15 +112,35 @@ module MainProfile(){ ]); } +module BayonetCutoutSlice(offset){ + rotate([0,0, atan2(offset, main_dia/2) ]){ + intersection(){ + translate([-offset, -10, 0]) + rotate([90,0,0]) + linear_extrude(height= main_dia*2) + polygon(bayo_polygon); + translate([0,0, -25]) + cylinder(h=50, r= main_dia/2 + rivet_tall); + #translate([0,0, -25]) + linear_extrude(height= 50) + polygon([ [ 0,0 ], + [ -bayo_slice_size, -main_dia ], + [ +bayo_slice_size, -main_dia ] ]); + } + } +} + module BayonetCutout(){ - offset = 5; - intersection(){ - translate([offset, -10, 0]) - rotate([90,0,0]) - linear_extrude(height= main_dia*2) - polygon(bayo_polygon); - translate([0,0, -25]) - cylinder(h=50, r= main_dia/2 + rivet_tall); + offs = [ for (i=[-5 : +5]) i ] * bayo_slice_size; + echo (offs); +* BayonetCutoutSlice(5); + for (off =offs + + //[ -20 : bayo_slice_size : 20 ] + ){ + translate([ off * 5, 0,0 ]) + echo(off); + BayonetCutoutSlice(off); } } -- 2.30.2