From 6babab3b28bf015868ef16fe0cf1650858f63866 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 5 Feb 2016 02:09:18 +0000 Subject: [PATCH] commitid-cube-test: TT test --- commitid-cube-test.scad | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/commitid-cube-test.scad b/commitid-cube-test.scad index 722cc01..a1ca46b 100644 --- a/commitid-cube-test.scad +++ b/commitid-cube-test.scad @@ -8,7 +8,7 @@ sz = 20; h = 0.4; -d = 0.1; +d = h; module FD () { scale([2,2,1]) { @@ -18,7 +18,7 @@ module FD () { } } -module TC () { +module TC () { ////toplevel difference(){ cube([sz,sz,sz]); translate([0,0, sz]) mirror([0,0,1]) FD(); @@ -30,4 +30,24 @@ module TC () { translate([0,sz,0]) rotate([-90,0,90]) rotate([0,0,180]) FD(); } -TC(); +w = 3; +t = 2; + +module TT () { ////toplevel + difference(){ + union(){ + translate([-sz, 0, -t]) + cube([sz*2 + w, sz, t]); + translate([0, 0, -t]) + cube([w, sz, sz]); + } + translate([0,sz,0]) rotate([90,0,-90]) FD(); + translate([0,0,-t]) rotate([0,0,0]) FD(); + translate([w,0,0]) rotate([0,0,0]) FD(); + } + translate([w,0,0]) rotate([90,0,90]) FD(); + translate([-sz,0,0]) rotate([0,0,0]) FD(); +} + +//TC(); +TT(); -- 2.30.2