summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-11-23 15:11:48 (GMT)
committerMarius Kintel <marius@kintel.net>2011-11-23 15:11:48 (GMT)
commit73092dd4c89829bb0a7fa0a026addd2d54171cbb (patch)
treee2af1c3826f6c20fc37a1630fdc60e44818e9088 /testdata
parent077a914ac68c3b32d2633bc7d0bb9b11f4544569 (diff)
Added support for 3D object in the hull() module
Diffstat (limited to 'testdata')
-rw-r--r--testdata/scad/features/hull3-tests.scad34
1 files changed, 12 insertions, 22 deletions
diff --git a/testdata/scad/features/hull3-tests.scad b/testdata/scad/features/hull3-tests.scad
index 2bd7d73..12c8a11 100644
--- a/testdata/scad/features/hull3-tests.scad
+++ b/testdata/scad/features/hull3-tests.scad
@@ -1,27 +1,17 @@
-// 3d not currently implemented
-module convex3dSimple() {
- hull() {
- translate([15,10]) cylinder(r=10);
- cylinder(r=10);
- }
-}
-
-// 3d not currently implemented
-module convex3dHole() {
- hull() {
- translate([15,10,0]) cylinder(10);
- difference() {
- cylinder(10);
- cylinder(5);
- }
- }
-}
-
-translate([0,40,0]) convex3dHole();
-translate([40,40,0]) convex3dSimple();
-
// Empty
hull();
// No children
hull() { }
+hull() {
+ cylinder(r=10, h=1);
+ translate([0,0,10]) cube([5,5,5], center=true);
+}
+
+translate([25,0,0]) hull() {
+ translate([0,0,10]) cylinder(r=3);
+ difference() {
+ cylinder(r=10, h=4, center=true);
+ cylinder(r=5, h=5, center=true);
+ }
+}
contact: Jan Huwald // Impressum