# Imported Mesh has Inaccurate Bounding Box

**URL:** <https://forum.babylonjs.com/t/imported-mesh-has-inaccurate-bounding-box/27965>\
**Category:** Questions\
**Tags:** mesh\
**Created:** [February 25, 2022, 5:26pm UTC](https://forum.babylonjs.com/t/imported-mesh-has-inaccurate-bounding-box/27965 "2022-02-25T17:26:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nerdsrock](https://avatars.discourse-cdn.com/v4/letter/n/9dc877/32.png) [@nerdsrock](https://forum.babylonjs.com/u/nerdsrock)\
**Post date:** [February 25, 2022, 5:26pm UTC](https://forum.babylonjs.com/t/imported-mesh-has-inaccurate-bounding-box/27965/1 "2022-02-25T17:26:28Z")

</div>

Hey all,

The suggested algorithm for computing the bounding box seems to be giving me trouble with a mesh I’m trying to import. Here’s a sandbox of the issue:

> **[Babylon.js Playground](https://playground.babylonjs.com/#4F33I3%23425)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

Any ideas what the issue could be?

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [February 25, 2022, 7:52pm UTC](https://forum.babylonjs.com/t/imported-mesh-has-inaccurate-bounding-box/27965/2 "2022-02-25T19:52:46Z")

</div>

why not relying on getHierarchyBoundingVectors ? it is a built in function that could help here.

---

<div class="post-metadata">

**Author:** ![nerdsrock](https://avatars.discourse-cdn.com/v4/letter/n/9dc877/32.png) [@nerdsrock](https://forum.babylonjs.com/u/nerdsrock)\
**Post date:** [February 25, 2022, 8:42pm UTC](https://forum.babylonjs.com/t/imported-mesh-has-inaccurate-bounding-box/27965/3 "2022-02-25T20:42:33Z")

</div>

Amazing that did it! In case this helps anyone else here is a PG showcasing the good vs bad way of doing it. Fwiw the bounding box is off-center in the PG but it works fine on my machine. At the minimum you can tell that one is definitely the wrong size and another is a much tighter fit:

> **[Babylon.js Playground](https://playground.babylonjs.com/#4F33I3%23426)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes
