Returns true if the bounding box has zero volume.
Returns the x span of this BBox.
Returns the y span of this BBox.
Returns the z span of this BBox.
Returns the midpoint of the bounding box.
Returns true if box is entirely inside this. If both boxes are identical, returns true.
BBox to test for containment
Returns true if p is inside this. If p is on a face, edge, or vertex of this, returns true.
Point to test for containment
Returns a string of the form 'bb<<x, y, z>, <x, y, z>>' where x, y, and z are in world coordinates. Note that these values are for display only, and are not guaranteed to reproduce the bounding box if read back in.
Returns a new BBox which represents this grown (or shrunk, if s is < 0) this box by s. The expansion is based on the center of the box.
The absolute amount to add to each direction
Returns the underlying three.js object.
Returns true if box2 intersects this.
The box to check against
Return true if plane intersects this.
The plane to check against
Returns the point at maximum x y and z in the world.
Returns the point at minimum x y and z in the world.
BBox is a pure geometry object. It is used for geometric computations within rules. It is based on the three.js Box3 object. A bounding box is a world-coordinate-aligned box, typically used to define the xyz bounds of some geometry. Most geometric instances have a
bbox
rule that returns their bounding box.