diff options
author | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-06-24 15:39:08 (GMT) |
---|---|---|
committer | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-06-24 15:39:08 (GMT) |
commit | 65c7db49c97ee3b0f79ffdd10a7396c3d7fb82a3 (patch) | |
tree | 07acf30113bf4748a2dfe976ea2791c08c9926e6 /example.scad | |
parent | ba42e6c30be19004f0c4351f51005bc5e5dabdca (diff) |
Clifford Wolf:
Generate CSG Products as part of compilation process
git-svn-id: http://svn.clifford.at/openscad/trunk@16 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'example.scad')
-rw-r--r-- | example.scad | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/example.scad b/example.scad index 8583963..65d20f4 100644 --- a/example.scad +++ b/example.scad @@ -33,10 +33,15 @@ module test003() { intersection() { difference() { - cube([3 3 3], center = true); - cube([5 1 1], center = true); - cube([1 5 1], center = true); - cube([1 1 5], center = true); + union() { + cube([3 3 3], center = true); + trans([0 0 -2.5]) cube([1.5 1.5 5], center = true); + } + union() { + cube([5 1 1], center = true); + cube([1 5 1], center = true); + cube([1 1 5], center = true); + } } trans([0 0 0.5]) cylinder(h = 5, r1 = 2, r2 = 0.5, center = true); |