|
@@ -598,17 +598,9 @@ THREE.BufferGeometry.prototype = {
|
|
|
|
|
|
if ( positions ) {
|
|
|
|
|
|
- box.makeEmpty();
|
|
|
-
|
|
|
var center = this.boundingSphere.center;
|
|
|
|
|
|
- for ( var i = 0, il = positions.length; i < il; i += 3 ) {
|
|
|
-
|
|
|
- vector.fromArray( positions, i );
|
|
|
- box.expandByPoint( vector );
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
+ box.setFromArray( positions );
|
|
|
box.center( center );
|
|
|
|
|
|
// hoping to find a boundingSphere with a radius smaller than the
|