X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=blobdiff_plain;f=treefoil.scad.pl;h=28e840e01dfc77a510c64c6ada8a7312ce7994a4;hp=82b0c59b0feb8058b690f82d038edcdffc01e88a;hb=19dabba52eb83aa8ad1d7381ef1d06cfff10e6f1;hpb=0aab309501e2f387193d20aa8cc2d6402de47e4b diff --git a/treefoil.scad.pl b/treefoil.scad.pl index 82b0c59..28e840e 100755 --- a/treefoil.scad.pl +++ b/treefoil.scad.pl @@ -37,7 +37,8 @@ while () { o $_ } __DATA__ -thick = 8; +thick = 7; +edgeu = 10; // calculated @@ -45,12 +46,24 @@ octa_long = thick; octa_short = octa_long / (1 + sqrt(2)); module OctaThing() { - foreach (r = [[0,0,0], [90,0,0], [0,90,0]]) { - rotate(r) - cube([ octa_short,octa_short, octa_long ], center=true); + hull(){ + for (r = [[0,0,0], [90,0,0], [0,90,0]]) { + rotate(r) + cube([ octa_short,octa_short, octa_long ], center=true); + } } } -OctaThing(); +module TraceEdge(p,q) { + hull(){ + for (x=[p,q]) { + translate(x * edgeu) + OctaThing(); + } + } +} + +rotate([-45,0,0]) + Trace();