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/09a7c973ba854d9b8d35 to your computer and use it in GitHub Desktop.

Select an option

Save madhephaestus/09a7c973ba854d9b8d35 to your computer and use it in GitHub Desktop.
//create a sphere
CSG sphere = new Sphere(25)// Spheres radius
.toCSG()// convert to CSG to display
CSG sphereHighRes = new Sphere(25,// Spheres radius
40,//elevation Divisions
40)// vertical divisions
.toCSG()// convert to CSG to display
sphere=sphere.movex(55)
return [sphere,sphereHighRes]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment