You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When giving object3D with an empty bounding box to expandFromObject, new Box3 is not empty.
Max of new Box3 is (+Inf, +Inf, +Inf) and min of that is (-Inf, -Inf, -Inf).
This is because expandFromObject use expandFromPoint to set max and min.
To fix this, it should set max and min directly or ignore when max = -Inf and min = +Inf.
You are right. Creating an AABB from a 3D objects like mesh, point cloud or line with an initial geometry object should be empty. Right now, this code returns false:
Description of the problem
When giving object3D with an empty bounding box to expandFromObject, new Box3 is not empty.
Max of new Box3 is (+Inf, +Inf, +Inf) and min of that is (-Inf, -Inf, -Inf).
This is because expandFromObject use expandFromPoint to set max and min.
To fix this, it should set max and min directly or ignore when max = -Inf and min = +Inf.
three.js/src/math/Box3.js
Lines 265 to 266 in c23b245
Three.js version
r111 and later
Browser
OS
The text was updated successfully, but these errors were encountered: