Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added sample jscad file for testing

  • Loading branch information...
commit 870365961fe58eeee5571be411a7a143d9b43bd1 1 parent 02f6809
@iamwilhelm authored
Showing with 17 additions and 0 deletions.
  1. +17 −0 dice.jscad
View
17 dice.jscad
@@ -0,0 +1,17 @@
+function main()
+{
+ var resolution = 24; // increase to get smoother corners (will get slow!)
+
+ var cube1 = CSG.roundedCube({center: [0,0,0], radius: [10,10,10], roundradius: 2, resolution: resolution});
+
+ var sphere1 = CSG.sphere({center: [5, 5, 5], radius: 12, resolution: resolution });
+ var sphere2 = sphere1.translate([12, 5, 0]);
+ var sphere3 = CSG.sphere({center: [20, 0, 0], radius: 30, resolution: resolution });
+
+ var result = cube1;
+ result = result.union(sphere1);
+ result = result.subtract(sphere2);
+ result = result.intersect(sphere3);
+ return result;
+}
+
Please sign in to comment.
Something went wrong with that request. Please try again.