diff options
author | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-07-14 21:47:32 (GMT) |
---|---|---|
committer | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-07-14 21:47:32 (GMT) |
commit | cc3291a4f1def85273e0e1cc6e43bb0079965946 (patch) | |
tree | 03ff099c015e6611a45e70318069026bbbff6115 /examples/example001.scad | |
parent | f950feace3beaeec9bd5a6d6e65f7790bd80a9d8 (diff) |
Clifford Wolf:
Added convexity handling
Split up example.scad file to examples/*
git-svn-id: http://svn.clifford.at/openscad/trunk@56 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'examples/example001.scad')
-rw-r--r-- | examples/example001.scad | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/examples/example001.scad b/examples/example001.scad new file mode 100644 index 0000000..87e091d --- /dev/null +++ b/examples/example001.scad @@ -0,0 +1,25 @@ + +module example001() +{ + function r_from_dia(d) = d / 2; + + module rotcy(rot, r, h) { + rotate(90, rot) cylinder(r = r, h = h, center = true); + } + + difference() { + sphere(r = r_from_dia(size)); + rotcy([0 0 0], cy_r, cy_h); + rotcy([1 0 0], cy_r, cy_h); + rotcy([ 0 1 0], cy_r, cy_h); + } + + size = 50; + hole = 25; + + cy_r = r_from_dia(hole); + cy_h = r_from_dia(size * 2.5); +} + +example001(); + |