Permalink
Browse files

update to support new API

  • Loading branch information...
NicolasRannou committed Aug 15, 2013
1 parent 48bac91 commit 52a5581d897f510b274f28b7efafe58e633caa6a
Showing with 2 additions and 6 deletions.
  1. +2 −6 02/demo.js
View
@@ -43,15 +43,10 @@ window.onload = function() {
// move some stuff around to display it all
// we want the original shapes to be in one row
- cube.transform.translateY(30);
cube.transform.translateX(-30);
- sphere.transform.translateY(30);
cylinder1.transform.translateX(30);
- cylinder1.transform.translateY(30);
cylinder2.transform.translateX(30);
- cylinder2.transform.translateY(30);
cylinder3.transform.translateX(30);
- cylinder3.transform.translateY(30);
// add'em all
r.add(cube);
@@ -67,7 +62,8 @@ window.onload = function() {
var funstuff = cube.intersect(sphere).subtract(
cylinder1.union(cylinder2).union(cylinder3));
funstuff.caption = "the three from above bool'ed together!";
-
+ funstuff.transform.translateZ(-30);
+
// add the result (funstuff)
r.add(funstuff);

0 comments on commit 52a5581

Please sign in to comment.