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=b1ceecbec8400a3129e0aeffd953b0e3f234910d;hb=19dabba52eb83aa8ad1d7381ef1d06cfff10e6f1;hpb=1dd4579d895f0f99ebd9bd8cffc307296c207af0 diff --git a/treefoil.scad.pl b/treefoil.scad.pl index b1ceecb..28e840e 100755 --- a/treefoil.scad.pl +++ b/treefoil.scad.pl @@ -36,3 +36,34 @@ o "}\n\n"; while () { o $_ } __DATA__ + +thick = 7; +edgeu = 10; + +// calculated + +octa_long = thick; +octa_short = octa_long / (1 + sqrt(2)); + +module OctaThing() { + hull(){ + for (r = [[0,0,0], [90,0,0], [0,90,0]]) { + rotate(r) + cube([ octa_short,octa_short, octa_long ], center=true); + } + } +} + +module TraceEdge(p,q) { + hull(){ + for (x=[p,q]) { + translate(x * edgeu) + OctaThing(); + } + } +} + +rotate([-45,0,0]) + Trace(); + +