diff options
author | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-06-25 09:49:28 (GMT) |
---|---|---|
committer | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-06-25 09:49:28 (GMT) |
commit | 1ef41a174f64d8ae98d2f727eef9a7613f85934c (patch) | |
tree | a349d76ac072e3923399168d7564e98eb9b534ab /example.scad | |
parent | 4f7d83c00fa2cd56d60cf399ccf848fdd63e1703 (diff) |
Clifford Wolf:
Some fixes, some progress (OpenCSG)
git-svn-id: http://svn.clifford.at/openscad/trunk@20 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'example.scad')
-rw-r--r-- | example.scad | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/example.scad b/example.scad index 65d20f4..c0ab7c2 100644 --- a/example.scad +++ b/example.scad @@ -48,5 +48,34 @@ module test003() } } -test003(); +module test004() +{ + intersection() { + difference() { + cylinder(h = 5, r1 = 2, r2 = 0.5, center = true); + cylinder(h = 6, r1 = 0.7, r2 = 0.7, center = true); + } + cube(3); + } +} + +module test005() +{ + difference() { + union() { + cube([3 3 3], center = true); + cube([4 1.5 1.5], center = true); + cube([1.5 4 1.5], center = true); + cube([1.5 1.5 4], center = true); + } + union() { + cube([5 1 1], center = true); + cube([1 5 1], center = true); + cube([1 1 5], center = true); + } + } +} + +test005(); + |