Skip to content

Instantly share code, notes, and snippets.

@flyx
Created October 5, 2012 11:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flyx/3839295 to your computer and use it in GitHub Desktop.
Save flyx/3839295 to your computer and use it in GitHub Desktop.
OpenSCAD stuff
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