From ce3806d61912ae58e0ba7b0e2cfd11e67c917b48 Mon Sep 17 00:00:00 2001 From: Elmom Date: Sun, 15 Aug 2010 12:34:43 +0300 Subject: [PATCH] added two implementations of intersection() (untested) --- utilities.scad | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/utilities.scad b/utilities.scad index fe85c31..4eb0643 100644 --- a/utilities.scad +++ b/utilities.scad @@ -23,6 +23,27 @@ function angle(v) = angleOfNormalizedVector(normalized(v)); function angleBetweenTwoPoints(a, b) = angle(normalized(b-a)); +// Untested +module intersection(big_number=1000000000){ + difference(){ + child(0); + difference(){ + cube(big_number, center=true); + child(1); + } + } +} + +module intersection2(){ + difference(){ + child(0); + difference(){ + child(0); + child(1); + } + } +} + CENTER = 0; LEFT = -0.5;