Does anywhere on the code , the compound box/sphere are recalculated under certain chnages?

im using computeBoundingBox and computeBoundingSphere to recalculate boundig box in instances that changes surface covered but i dont want to double the processing , i have checked the source codee and i dotn see anythign that run computeBoundingSphere computeBoundingBox Code search results · GitHub so just to be sure , im askign here

I think It’s only called automatically in the renderer, if it’s missing, but needed for frustum culling or raycasting, since it’s a relatively slow operation so usually has to be invoked manually (usually after you generate some geometry). Geometry coming from a well formed, loaded .glb/gltf file usually has the bounding boxes already computed for you.
You can also set bounding sphere/box manually if you know beforehand what it should be, and that may be more efficient that recomputing it from the vertices themselves, or letting the renderer compute it lazily.