From: Ian Jackson Date: Tue, 31 May 2022 17:06:37 +0000 (+0100) Subject: laptop-sound-cable-hooks: wip X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=1bb0ec3e7fab29e371bdf6bf5a3eecdf19087e3a;p=reprap-play.git laptop-sound-cable-hooks: wip Signed-off-by: Ian Jackson --- diff --git a/laptop-sound-cable-hooks.scad b/laptop-sound-cable-hooks.scad index 30a72e0..d0a7b9c 100644 --- a/laptop-sound-cable-hooks.scad +++ b/laptop-sound-cable-hooks.scad @@ -22,18 +22,37 @@ module PlugMainPlan() { } } -module PlugBodyPlan() { +module PlugHolderPlan() { intersection(){ hull() offset(r= wall_th) PlugMainPlan(); - rectfromto([-100,-100], [0,+100]); + + rectfromto([-100,-100], [-0.1,+100]); } } module DemoPlan() { - translate([0,0,-5]) color("grey") PlugBodyPlan(); + translate([0,0,-5]) color("grey") PlugHolderPlan(); PlugMainPlan(); } -DemoPlan(); +module RotateIntersect(n=6){ + intersection_for (r = [0:n-1]) { + rotate([r/n * 360,0,0]) + linextr(-100,100) children(0); + } +} + +module PlugHolder(){ + difference(){ + RotateIntersect(8) + PlugHolderPlan(); + + RotateIntersect(6) + PlugMainPlan(); + } +} + +//DemoPlan(); +PlugHolder();