BoxHelper

new BoxHelper(object, color?)
THREE: THREE.BoxHelper

Draws a wireframe box around the bounding box of a scene object's geometry. Call update() after the object moves or its geometry changes.

Properties

NameTypeDescription
geometry

Geometry

Line geometry representing the 12 box edges.

Methods

MethodDescription
update(): void

Recomputes the wireframe from the object's current boundingBox.

setFromObject(object: *): this

Rebuilds the wireframe from the given object's geometry.boundingBox.

dispose(): void

Disposes the underlying geometry.