Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
clifford
committed
Oct 19, 2009
1 parent
7c99871
commit 05b2eb1
Showing
15 changed files
with
90 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
|
||
module example005() | ||
{ | ||
translate([0 0 -120]) { | ||
translate([0, 0, -120]) { | ||
difference() { | ||
cylinder(h = 50, r = 100); | ||
translate([0 0 10]) cylinder(h = 50, r = 80); | ||
translate([100 0 35]) cube(50, center = true); | ||
translate([0, 0, 10]) cylinder(h = 50, r = 80); | ||
translate([100, 0, 35]) cube(50, center = true); | ||
} | ||
for (i = [0:5]) { | ||
echo(360*i/6, sin(360*i/6)*80, cos(360*i/6)*80); | ||
translate([sin(360*i/6)*80, cos(360*i/6)*80, 0 ]) | ||
cylinder(h = 200, r=10); | ||
} | ||
translate([0 0 200]) | ||
translate([0, 0, 200]) | ||
cylinder(h = 80, r1 = 120, r2 = 0); | ||
} | ||
} | ||
|
||
example005(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
polyeder( | ||
points = [ | ||
[10 0 0], | ||
[ 0 10 0], | ||
[ -10 0 0], | ||
[ 0 -10 0], | ||
[ 0 0 10] | ||
[10, 0, 0], | ||
[0, 10, 0], | ||
[-10, 0, 0], | ||
[0, -10, 0], | ||
[0, 0, 10] | ||
], | ||
triangles = [ | ||
[0 1 2 3], | ||
[4 1 0], | ||
[4 2 1], | ||
[4 3 2], | ||
[4 0 3] | ||
[0, 1, 2, 3], | ||
[4, 1, 0], | ||
[4, 2, 1], | ||
[4, 3, 2], | ||
[4, 0, 3] | ||
] | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.