summaryrefslogtreecommitdiff
path: root/examples/example001.scad
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-10-19 18:27:47 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-10-19 18:27:47 (GMT)
commit05b2eb1b90620025ba9242477b0df688745dd0db (patch)
treecfa890ef8e4bb5182ba988cf817c482e2fc639e1 /examples/example001.scad
parent7c998717209c4ea3cd8edf329baa3e5040d15266 (diff)
Clifford Wolf:
Fixed scalar subtraction Fixed handling of -/+ scalar prefix Fixed vector handling [0 1 2] doesn't work anymore now git-svn-id: http://svn.clifford.at/openscad/trunk@109 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'examples/example001.scad')
-rw-r--r--examples/example001.scad9
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/example001.scad b/examples/example001.scad
index 87e091d..50bf8ff 100644
--- a/examples/example001.scad
+++ b/examples/example001.scad
@@ -4,14 +4,15 @@ module example001()
function r_from_dia(d) = d / 2;
module rotcy(rot, r, h) {
- rotate(90, rot) cylinder(r = r, h = h, center = true);
+ 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);
+ 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;
contact: Jan Huwald // Impressum