[page:Mesh] →

# [name]

A helper object to show the world-axis-aligned bounding box for an object.

## Example

`var hex = 0xff0000; var sphereMaterial = new THREE.MeshLambertMaterial( {color: 0x00ff00} ); var sphere = new THREE.Mesh( new THREE.SphereGeometry( 30, 12, 12), sphereMaterial ); scene.add( sphere ); var bbox = new THREE.BoundingBoxHelper( sphere, hex ); bbox.update(); scene.add( bbox );`
Note that this helper will create a wireframe [page:Mesh] object with a [page:BoxGeometry]; the resulting bounding box object will therefore have face diagonals. You may want to use [page:BoxHelper], which generates a [page:Line] object without face diagonals.

## Constructor

### [name]([page:Object3D object], [page:Number hex])

object -- Object3D -- the object3D to show the world-axis-aligned boundingbox.
hex -- hexadecimal value to define color ex:0x888888
This creates an line object to the boundingbox.

## Properties

### [property:Object3D object]

Contains the object3D to show the world-axis-aligned boundingbox.

### [property:Box3 box]

Contains the bounding box of the object.

## Methods

### [method:null update]()

Updates the BoundingBoxHelper based on the object property.

## Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]