X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=treefoil.scad.pl;fp=treefoil.scad.pl;h=82b0c59b0feb8058b690f82d038edcdffc01e88a;hb=0aab309501e2f387193d20aa8cc2d6402de47e4b;hp=b1ceecbec8400a3129e0aeffd953b0e3f234910d;hpb=1dd4579d895f0f99ebd9bd8cffc307296c207af0;p=reprap-play.git diff --git a/treefoil.scad.pl b/treefoil.scad.pl index b1ceecb..82b0c59 100755 --- a/treefoil.scad.pl +++ b/treefoil.scad.pl @@ -36,3 +36,21 @@ o "}\n\n"; while () { o $_ } __DATA__ + +thick = 8; + +// calculated + +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); + } +} + +OctaThing(); + +