Skip to content

Instantly share code, notes, and snippets.

@madhephaestus
Last active February 25, 2020 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save madhephaestus/2374524a0882601de95fc16e47dfd9e9 to your computer and use it in GitHub Desktop.
Save madhephaestus/2374524a0882601de95fc16e47dfd9e9 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