Skip to content

Instantly share code, notes, and snippets.

@thehans
Created February 15, 2019 19:44
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 thehans/22a86bc85a83e23200d1baab90326804 to your computer and use it in GitHub Desktop.
Save thehans/22a86bc85a83e23200d1baab90326804 to your computer and use it in GitHub Desktop.
remove z=0 from surface
#surface.dat
10 9 8 7 6 5 5 5 5 5
9 8 7 6 6 4 3 2 1 0
8 7 6 6 4 3 2 1 0 0
7 6 6 4 3 2 1 0 0 0
6 6 4 3 2 1 1 0 0 0
6 6 3 2 1 1 1 0 0 0
6 6 2 1 1 1 1 0 0 0
6 6 1 0 0 0 0 0 0 0
3 1 0 0 0 0 0 0 0 0
3 0 0 0 0 0 0 0 0 0
//surface.scad
difference() {
surface(file = "surface.dat", center = true, convexity = 5);
translate([0,0,-5])cube([10,10,10], center =true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment