X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=blobdiff_plain;f=bike-stalk-led-mount.scad;h=a3c0c4efa4749d44960e53002bcf123555cc1bd1;hp=43d2adebb0b46f151286888aed132e5baf808ef7;hb=872cd48f11a61e4d11c38f0c29a457c95c8ff7dc;hpb=d9ea5bab0b84b92ead552dfc1f9c7c007213ad7e diff --git a/bike-stalk-led-mount.scad b/bike-stalk-led-mount.scad index 43d2ade..a3c0c4e 100644 --- a/bike-stalk-led-mount.scad +++ b/bike-stalk-led-mount.scad @@ -1,5 +1,7 @@ // -*- C -*- +include + stalk_dia = 6.4 + 0.25; length = 50; @@ -28,18 +30,23 @@ module StalkCutout(){ } module SomeBlockBase(height){ - translate([0,0, height/2 + inside_gap/2]) - cube([length, width, height], center=true); + translate([0,0, height/2 + inside_gap/2]) { + difference(){ + cube([length, width, height], center=true); + translate([-length/2, 0, height/2]) + Commitid_BestCount([length*.66, width/2]); + } + } } -module BlockAbove(){ +module BlockAbove(){ ////toplevel difference(){ SomeBlockBase(above_height); StalkCutout(); } } -module BlockBelow(){ +module BlockBelow(){ ////toplevel difference(){ SomeBlockBase(below_height); StalkCutout(); @@ -48,9 +55,17 @@ module BlockBelow(){ } } -module Demo(){ +module BlockAbovePrint(){ ////toplevel + rotate([180,0,0]) BlockAbove(); +} + +module BlockBelowPrint(){ ////toplevel + rotate([180,0,0]) BlockBelow(); +} + +module Demo(){ ////toplevel BlockAbove(); rotate([180,0,0]) BlockBelow(); } -Demo(); +//Demo();