console.error( 'THREE.BufferGeometry.computeBoundingBox: Computed min/max have NaN values. The "position" attribute is likely to have NaN values.', this );
for ( var i = 0, il = morphAttributesPosition.length; i < il; i ++ ) {
}
var morphAttribute = morphAttributesPosition[ i ];
console.error( 'THREE.BufferGeometry.computeBoundingBox: Computed min/max have NaN values. The "position" attribute is likely to have NaN values.', this );
}
};
}(),
computeBoundingSphere: function () {
var box = new Box3();
var boxMorphTargets = new Box3();
var vector = new Vector3();
return function computeBoundingSphere() {
...
...
@@ -11820,28 +11844,67 @@
}
var position = this.attributes.position;
var morphAttributesPosition = this.morphAttributes.position;
if ( position ) {
// first, find the center of the bounding sphere
var center = this.boundingSphere.center;
box.setFromBufferAttribute( position );
// process morph attributes if present
if ( morphAttributesPosition ) {
for ( var i = 0, il = morphAttributesPosition.length; i < il; i ++ ) {
var morphAttribute = morphAttributesPosition[ i ];
console.error( 'THREE.BufferGeometry.computeBoundingBox: Computed min/max have NaN values. The "position" attribute is likely to have NaN values.', this );
for ( var i = 0, il = morphAttributesPosition.length; i < il; i ++ ) {
}
var morphAttribute = morphAttributesPosition[ i ];
console.error( 'THREE.BufferGeometry.computeBoundingBox: Computed min/max have NaN values. The "position" attribute is likely to have NaN values.', this );