Any way to get a bounding box from a three.js Object3D?
https://stackoverflow.com/questions/15492857/any-way-to-get-a-bounding-box-from-a-three-js-object3d
WEBJul 7, 2021 · 115. You don't need to iterate over all children of the object; there's a method in the library to do this: THREE.Box3#setFromObject: see the docs. For example, you can do: var bbox = new THREE.Box3().setFromObject(obj); to get the bounding box of obj, including all of its children, and accounting for any translations, rotations, etc.
DA: 78 PA: 22 MOZ Rank: 38