Skip to content

Commit

Permalink
AABB clarification (mrdoob#23125)
Browse files Browse the repository at this point in the history
  • Loading branch information
WestLangley authored Jan 18, 2022
1 parent 3a90040 commit 249e041
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/api/en/math/Box3.html
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,9 @@ <h3>[method:this setFromObject]( [param:Object3D object] )</h3>
<p>
[page:Object3D object] - [page:Object3D] to compute the bounding box of.<br /><br />

Computes the world-axis-aligned bounding box of an [page:Object3D] (including its children),
accounting for the object's, and children's, world transforms.
The function may result in a larger box than strictly necessary.
Computes a world-axis-aligned bounding box of an [page:Object3D] (including its children),
accounting for the object's, and children's, world transforms.<br /><br />
For computational efficiency, the computed bounding box may be larger than the <em>minimal</em> world-axis-aligned bounding box.

</p>

Expand Down
4 changes: 3 additions & 1 deletion src/math/Box3.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ class Box3 {
expandByObject( object ) {

// Computes the world-axis-aligned bounding box of an object (including its children),
// accounting for both the object's, and children's, world transforms
// accounting for both the object's, and children's, world transforms.

// For computational efficiency, the computed bounding box may be larger than the minimal world-axis-aligned bounding box.

object.updateWorldMatrix( false, false );

Expand Down

0 comments on commit 249e041

Please sign in to comment.