Skip to content

Instantly share code, notes, and snippets.

@Octogonapus
Forked from madhephaestus/filletASlice.groovy
Created February 25, 2020 17:47
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 Octogonapus/1098c9b2e75b26bfc454cf7b23dac505 to your computer and use it in GitHub Desktop.
Save Octogonapus/1098c9b2e75b26bfc454cf7b23dac505 to your computer and use it in GitHub Desktop.
Slice a csg and fillet around the slice
double rad =2
def base = new Cube(20).toCSG()
.difference(new Cube(5,10,20).toCSG())
.difference(new Cube(10,5,20).toCSG())
.rotz(5)
.toZMin()
List<Polygon> polys = Slice.slice(base)
return [Fillet.outerFillet( base,(double)rad),polys]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment