Skip to content

Instantly share code, notes, and snippets.

@madhephaestus
Last active February 20, 2022 15:38
Show Gist options
  • Save madhephaestus/09a7c973ba854d9b8d35 to your computer and use it in GitHub Desktop.
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