瀏覽代碼

AABB clarification (#23125)

WestLangley 3 年之前
父節點
當前提交
249e041f75
共有 2 個文件被更改,包括 6 次插入4 次删除
  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>
 		[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>
 

+ 3 - 1
src/math/Box3.js

@@ -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 );