Helper object to graphically show the world-axis-aligned bounding box around an object. The actual bounding box is handled with [[Box3]], this is just a visual helper for debugging. It can be automatically resized with [[BoxHelper#update]] when the object it's created from is transformed. Note that the object must have a geometry for this to work, so it won't work with sprites.
Attributes
- Example
-
val sphere = new SphereGeometry() val obj = new Mesh(sphere, new MeshBasicMaterial(0xff0000)) val box = new BoxHelper(obj, 0xffff00) scene.add(box) - Companion
- object
- Graph
-
- Supertypes
-
class LineSegmentsclass Lineclass Object3Dclass Objecttrait Anyclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app.
Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app.
Attributes
Updates the wireframe box for the passed object.
Updates the wireframe box for the passed object.
Value parameters
- obj
-
The 3D object to create the helper for.
Attributes
- Returns
-
A reference to this instance.
Updates the helper's geometry to match the dimensions of the object, including any children.
Updates the helper's geometry to match the dimensions of the object, including any children.
Attributes
Inherited methods
Attributes
- Inherited from:
- Object3D
Attributes
- Inherited from:
- Object3D
Computes an array of distance values which are necessary for LineDashedMaterial. For each vertex in the geometry, the method calculates the cumulative length from the current point to the very beginning of the line.
Computes an array of distance values which are necessary for LineDashedMaterial. For each vertex in the geometry, the method calculates the cumulative length from the current point to the very beginning of the line.
Attributes
- Inherited from:
- Line
Attributes
- Inherited from:
- Object3D
Attributes
- Inherited from:
- Object3D
Attributes
- Inherited from:
- Object3D
Attributes
- Inherited from:
- Object3D
Attributes
- Inherited from:
- Object3D
Attributes
- Inherited from:
- Object3D
Attributes
- Inherited from:
- Object3D
Attributes
- Inherited from:
- Object
Attributes
- Inherited from:
- Object
Attributes
- Inherited from:
- Object3D
Attributes
- Inherited from:
- Object3D
Attributes
- Inherited from:
- Object
Attributes
- Inherited from:
- Object3D
Attributes
- Inherited from:
- Object3D
Attributes
- Inherited from:
- Object3D
Attributes
- Inherited from:
- Object3D
Attributes
- Inherited from:
- Object3D
Attributes
- Inherited from:
- Object3D
Attributes
- Inherited from:
- Object
Attributes
- Inherited from:
- Object3D
Attributes
- Inherited from:
- Object3D
Attributes
- Inherited from:
- Object3D
Attributes
- Inherited from:
- Object3D
Attributes
- Inherited from:
- Object3D
Attributes
- Inherited from:
- Object3D
Attributes
- Inherited from:
- Object3D
Attributes
- Inherited from:
- Object3D
Updates the morphTargets to have no influence on the object. Resets the morphTargetInfluences and morphTargetDictionary properties.
Updates the morphTargets to have no influence on the object. Resets the morphTargetInfluences and morphTargetDictionary properties.
Attributes
- Inherited from:
- Line
Attributes
- Inherited from:
- Object3D
Attributes
- Inherited from:
- Object
Attributes
- Inherited from:
- Object3D
Inherited fields
Attributes
- Inherited from:
- Object3D
Attributes
- Inherited from:
- Object3D
Attributes
- Inherited from:
- Line
This flag can be used for type testing.
This flag can be used for type testing.
Attributes
- Inherited from:
- Object3D
Attributes
- Inherited from:
- Object3D
Attributes
- Inherited from:
- Object3D
A dictionary of morphTargets based on the morphTarget.name property.
A dictionary of morphTargets based on the morphTarget.name property.
Attributes
- Inherited from:
- Line
An array of weights typically from 0-1 that specify how much of the morph is applied.
An array of weights typically from 0-1 that specify how much of the morph is applied.
Attributes
- Inherited from:
- Line
Attributes
- Inherited from:
- Object3D
Attributes
- Inherited from:
- Object3D
Attributes
- Inherited from:
- Object3D