# Bounding box bigger than mesh

**URL:** <https://discourse.threejs.org/t/bounding-box-bigger-than-mesh/49342>\
**Category:** Questions\
**Tags:** rotation\
**Created:** [March 20, 2023, 3:48pm UTC](https://discourse.threejs.org/t/bounding-box-bigger-than-mesh/49342 "2023-03-20T15:48:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tonik](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/tonik/32/34118_2.png) [@Tonik](https://discourse.threejs.org/u/Tonik)\
**Post date:** [March 20, 2023, 3:48pm UTC](https://discourse.threejs.org/t/bounding-box-bigger-than-mesh/49342/1 "2023-03-20T15:48:25Z")

</div>

After performing a rotation of a mesh l, the bounding box wont update to the new value.  
How to update it to the current state  
Any information?

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [March 20, 2023, 6:04pm UTC](https://discourse.threejs.org/t/bounding-box-bigger-than-mesh/49342/2 "2023-03-20T18:04:34Z")

</div>

Instances of `Box3` are axis-aligned so it’s normal that the bounding box varies in size when objects are rotated.

---

<div class="post-metadata">

**Author:** ![anidivr](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/anidivr/32/32924_2.png) [@anidivr](https://discourse.threejs.org/u/anidivr)\
**Post date:** [March 21, 2023, 1:20am UTC](https://discourse.threejs.org/t/bounding-box-bigger-than-mesh/49342/3 "2023-03-21T01:20:01Z")

</div>

You could also try using Object Bounding Box [three.js/OBB.js at dev · mrdoob/three.js (github.com)](https://github.com/mrdoob/three.js/blob/f83bc569da527d2821a428ffaead8b29b5f847a5/examples/jsm/math/OBB.js)

---

<div class="post-metadata">

**Author:** ![Tonik](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/tonik/32/34118_2.png) [@Tonik](https://discourse.threejs.org/u/Tonik)\
**Post date:** [March 21, 2023, 5:49am UTC](https://discourse.threejs.org/t/bounding-box-bigger-than-mesh/49342/4 "2023-03-21T05:49:04Z")

</div>

If we import a mesh not axis aligned, when we correct her rotation and become axis aligned, bounding box wont update and still as initial before axis correction

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [March 21, 2023, 9:04am UTC](https://discourse.threejs.org/t/bounding-box-bigger-than-mesh/49342/5 "2023-03-21T09:04:59Z")

</div>

Have you already tried `box.setFromObject( object, true )`?

---

<div class="post-metadata">

**Author:** ![Tonik](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/tonik/32/34118_2.png) [@Tonik](https://discourse.threejs.org/u/Tonik)\
**Post date:** [March 21, 2023, 7:31pm UTC](https://discourse.threejs.org/t/bounding-box-bigger-than-mesh/49342/6 "2023-03-21T19:31:23Z")

</div>

Tried without luck
