|
@@ -28,10 +28,12 @@ Sphere.prototype = {
|
|
|
|
|
|
setFromPoints: function () {
|
|
|
|
|
|
- var box = new Box3();
|
|
|
+ var box;
|
|
|
|
|
|
return function setFromPoints( points, optionalCenter ) {
|
|
|
|
|
|
+ if ( box === undefined ) box = new Box3(); // see #10547
|
|
|
+
|
|
|
var center = this.center;
|
|
|
|
|
|
if ( optionalCenter !== undefined ) {
|