diff options
author | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-10-19 18:27:47 (GMT) |
---|---|---|
committer | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-10-19 18:27:47 (GMT) |
commit | 05b2eb1b90620025ba9242477b0df688745dd0db (patch) | |
tree | cfa890ef8e4bb5182ba988cf817c482e2fc639e1 /examples/example007.scad | |
parent | 7c998717209c4ea3cd8edf329baa3e5040d15266 (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/example007.scad')
-rw-r--r-- | examples/example007.scad | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/examples/example007.scad b/examples/example007.scad index 19415bf..fe69f84 100644 --- a/examples/example007.scad +++ b/examples/example007.scad @@ -3,17 +3,17 @@ module cutout() { intersection() { - rotate(90, [1 0 0]) - translate([0 0 -50]) + rotate(90, [1, 0, 0]) + translate([0, 0, -50]) dxf_linear_extrude( file = "example007.dxf", layer = "cutout1", height = 100, convexity = 1); - rotate(90, [0 0 1]) - rotate(90, [1 0 0]) - translate([0 0 -50]) + rotate(90, [0, 0, 1]) + rotate(90, [1, 0, 0]) + translate([0, 0, -50]) dxf_linear_extrude( file = "example007.dxf", layer = "cutout2", @@ -29,8 +29,8 @@ module clip() file = "example007.dxf", layer="dorn", convexity = 3); - for (r = [0 90]) - rotate(r, [0 0 1]) + for (r = [0, 90]) + rotate(r, [0, 0, 1]) cutout(); } } @@ -41,29 +41,29 @@ module cutview() { difference() { - translate([0 0 -10]) + translate([0, 0, -10]) clip(); - rotate(20, [0 0 1]) - rotate(-20, [0 1 0]) - translate([18 0 0]) + rotate(20, [0, 0, 1]) + rotate(-20, [0, 1, 0]) + translate([18, 0, 0]) cube(30, center = true); } # render(convexity = 5) intersection() { - translate([0 0 -10]) + translate([0, 0, -10]) clip(); - rotate(20, [0 0 1]) - rotate(-20, [0 1 0]) - translate([18 0 0]) + rotate(20, [0, 0, 1]) + rotate(-20, [0, 1, 0]) + translate([18, 0, 0]) cube(30, center = true); } } } -translate([0 0 -10]) +translate([0, 0, -10]) clip(); // cutview(); |