Skip to content

Instantly share code, notes, and snippets.

@madhephaestus
Last active January 16, 2026 00:17
Show Gist options
  • Select an option

  • Save madhephaestus/c15329c19b4a33248fe9 to your computer and use it in GitHub Desktop.

Select an option

Save madhephaestus/c15329c19b4a33248fe9 to your computer and use it in GitHub Desktop.
//create a rounded cube
CSG roundedCube = new RoundedCube( 40,// X dimention
40,// Y dimention
40// Z dimention
)
.cornerRadius(4)// sets the radius of the corner
.toCSG()// converts it to a CSG tor display
return roundedCube
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment