Skip to content

Instantly share code, notes, and snippets.

@bmander
Created May 19, 2012 00:30
Show Gist options
  • Save bmander/2728309 to your computer and use it in GitHub Desktop.
Save bmander/2728309 to your computer and use it in GitHub Desktop.
jscad sphere
function makesphere(r){
return function(x,y,z){
return Math.pow(x,2) + Math.pow(y,2) + Math.pow(z,2) < Math.pow(r,2);
}
}
emit( makesphere(90) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment