summaryrefslogtreecommitdiff
path: root/example.scad
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-06-24 15:39:08 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-06-24 15:39:08 (GMT)
commit65c7db49c97ee3b0f79ffdd10a7396c3d7fb82a3 (patch)
tree07acf30113bf4748a2dfe976ea2791c08c9926e6 /example.scad
parentba42e6c30be19004f0c4351f51005bc5e5dabdca (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.scad13
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);
contact: Jan Huwald // Impressum