diff options
author | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-01-07 20:49:27 (GMT) |
---|---|---|
committer | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-01-07 20:49:27 (GMT) |
commit | 65ee5136619352cb58b055ec63c473fbd5d08e1d (patch) | |
tree | 7cadfc836949c4280bf032c64bd3ba81b84eec17 /examples | |
parent | df24accdf0b2ef06fa77439e4674439d7a9b508d (diff) |
Clifford Wolf:
Added rotate_extrude statement()
git-svn-id: http://svn.clifford.at/openscad/trunk@231 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'examples')
-rw-r--r-- | examples/example017.scad | 35 |
1 files changed, 30 insertions, 5 deletions
diff --git a/examples/example017.scad b/examples/example017.scad index 2b624e2..01cf491 100644 --- a/examples/example017.scad +++ b/examples/example017.scad @@ -24,7 +24,7 @@ module shape_tripod() y2 = y1 + thickness; y3 = y2 + thickness; y4 = y3 + thickness; - y5 = y3 + total_height - 4*thickness; + y5 = y3 + total_height - 3*thickness; y6 = y5 + thickness; union() @@ -96,7 +96,7 @@ module parts() module exploded() { - translate([ 0, 0, total_height + thickness ]) linear_extrude(height = thickness, convexity = 4) shape_inner_disc(); + translate([ 0, 0, total_height + 2*thickness ]) linear_extrude(height = thickness, convexity = 4) shape_inner_disc(); linear_extrude(height = thickness, convexity = 4) shape_outer_disc(); color([ 0.7, 0.7, 1 ]) for (alpha = [ 0, 120, 240 ]) @@ -104,16 +104,41 @@ module exploded() rotate([ 90, 0, -90 ]) linear_extrude(height = thickness, convexity = 10, center = true) shape_tripod(); } +module bottle() +{ + r = boltlen + midhole; + h = total_height - thickness*2; + + rotate_extrude(convexity = 2) + { + square([ r, h ]); + + translate([ 0, h ]) + intersection() { + square([ r, r ]); + scale([ 1, 0.7 ]) circle(r); + } + + translate([ 0, h+r ]) + intersection() { + translate([ 0, -r/2 ]) square([ r/2, r ]); + circle(r/2); + } + } +} + module assembled() { - translate([ 0, 0, total_height - thickness*2 ]) linear_extrude(height = thickness, convexity = 4) shape_inner_disc(); + translate([ 0, 0, total_height - thickness ]) linear_extrude(height = thickness, convexity = 4) shape_inner_disc(); linear_extrude(height = thickness, convexity = 4) shape_outer_disc(); color([ 0.7, 0.7, 1 ]) for (alpha = [ 0, 120, 240 ]) rotate(alpha) translate([ 0, thickness*2 + locklen1 + inner1_to_inner2 + boltlen + midhole, 0 ]) rotate([ 90, 0, -90 ]) linear_extrude(height = thickness, convexity = 10, center = true) shape_tripod(); + + % translate([ 0, 0, thickness*2]) bottle(); } -parts(); +// parts(); // exploded(); -// assembled(); +assembled(); |