Skip to content

Commit

Permalink
Revert "AABB clarification (#23125)" (#23330)
Browse files Browse the repository at this point in the history
This reverts commit 249e041.
  • Loading branch information
mrdoob authored Jan 25, 2022
1 parent dad3a91 commit f42a028
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 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 @@ -270,9 +270,9 @@ <h3>[method:this setFromObject]( [param:Object3D object], [param:Boolean precise
[page:Object3D object] - [page:Object3D] to compute the bounding box of.<br />
precise - (optional) compute the smallest world-axis-aligned bounding box at the expense of more computation. Default is false.<br /><br />

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.
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.

</p>

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

// Computes the world-axis-aligned bounding box of an object (including its children),
// 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.
// accounting for both the object's, and children's, world transforms

object.updateWorldMatrix( false, false );

Expand Down

0 comments on commit f42a028

Please sign in to comment.