Browse Source

AABB clarification (#23125)

WestLangley 3 years ago
parent
commit
249e041f75
2 changed files with 6 additions and 4 deletions
  1. 3 3
      docs/api/en/math/Box3.html
  2. 3 1
      src/math/Box3.js

+ 3 - 3
docs/api/en/math/Box3.html

@@ -268,9 +268,9 @@
 		<p>
 		<p>
 		[page:Object3D object] - [page:Object3D] to compute the bounding box of.<br /><br />
 		[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>
 		</p>
 
 

+ 3 - 1
src/math/Box3.js

@@ -191,7 +191,9 @@ class Box3 {
 	expandByObject( object ) {
 	expandByObject( object ) {
 
 
 		// Computes the world-axis-aligned bounding box of an object (including its children),
 		// 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 );
 		object.updateWorldMatrix( false, false );