Skip to content

Commit

Permalink
shape fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Feb 25, 2011
1 parent 9bcb02f commit 73ed1d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion c3dl/shapes/shape.js
Expand Up @@ -282,7 +282,7 @@ c3dl.Shape.prototype.getObjectType = function () {
}

c3dl.Shape.prototype.getBoundingVolumes = function () {
return this.shape.getBoundingVolumes();
return [this.boundingVolume];
}

c3dl.Shape.prototype.getHeight = function () {
Expand Down
2 changes: 1 addition & 1 deletion c3dl/shapes/sphere.js
Expand Up @@ -13,7 +13,7 @@ c3dl.Sphere = c3dl.inherit(c3dl.Shape, function (radius, sphereDetailU, sphereDe
this.cosLUT[i] = Math.cos(i * (Math.PI / 180) * 0.5);
}
if (arguments.length == 3) {
this.sphereDetail(sphereDetailU,sphereDetailV);
this.sphereDetail(parseInt(sphereDetailU),parseInt(sphereDetailV));
}
else {
this.sphereDetail(32,32);
Expand Down

0 comments on commit 73ed1d8

Please sign in to comment.