mrdoob/three.js — comment on commit c5613ebb5371f5135bde9a07b654c19967155be5
File:  line 0
By alteredq:

Hmmm, while we are at it, maybe bounding box could be represented as two `Vector3` points instead of a custom object?

```javascript
// Geometry

this.boundingBox = { min: new THREE.Vector3(), max: new THREE.Vector3() };

this.boundingBox.min.copy( this.vertices[ 0 ].position );
this.boundingBox.max.copy( this.vertices[ 0 ].position );

if ( vertex.position.x < this.boundingBox.min.x ) {

this.boundingBox.min.x = vertex.position.x;

} else if ( vertex.position.x > this.boundingBox.max.x ) {

this.boundingBox.max.x = vertex.position.x;

}

// GeometryUtils

var offset = new THREE.Vector3();
offset.add( geometry.boundingBox.min, geometry.boundingBox.max );
offset.multiplyScalar( -0.5 );
```