Explorar o código

Revert "AABB clarification (#23125)" (#23330)

This reverts commit 249e041f75dcf2b75356e1283fdb40b5385f631d.
mrdoob %!s(int64=3) %!d(string=hai) anos
pai
achega
f42a028f32
Modificáronse 2 ficheiros con 4 adicións e 6 borrados
  1. 3 3
      docs/api/en/math/Box3.html
  2. 1 3
      src/math/Box3.js

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

@@ -270,9 +270,9 @@
 		[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>
 

+ 1 - 3
src/math/Box3.js

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