Created
October 5, 2012 11:16
-
-
Save flyx/3839295 to your computer and use it in GitHub Desktop.
OpenSCAD stuff
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
module earth() { | |
sphere(r=2, $fn=200); | |
} | |
module chock() { | |
polyhedron( | |
points=[[0,0,2], [0,0,-2], [2,0.6,2], [2, 0.6, -2], [2, -0.6, 2], | |
[2, -0.6, -2] ], | |
triangles=[[0, 1, 2], [1, 3, 2], [0, 4, 1], [1, 4, 5], [2, 3, 5], [2, 5, 4], | |
[0, 2, 4], [1, 5, 3]] | |
); | |
} | |
color([0.5, 0.5, 1.0, 1.0]) { | |
difference() { | |
earth(); | |
chock(); | |
} | |
} | |
color([0.0, 0.0, 1.0, 1.0]) { | |
intersection() { | |
earth(); | |
chock(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment