BoxHelper
new BoxHelper(object, color?)THREE equivalent: 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
Section titled “Properties”| Name | Type | Description |
|---|---|---|
geometry |
Geometry |
Line geometry representing the 12 box edges. |
Methods
Section titled “Methods”| Method | Description |
|---|---|
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. |