# About mesh positions and sizes in gltf files

**URL:** <https://forum.babylonjs.com/t/about-mesh-positions-and-sizes-in-gltf-files/2593>\
**Category:** Questions\
**Created:** [April 15, 2019, 2:58pm UTC](https://forum.babylonjs.com/t/about-mesh-positions-and-sizes-in-gltf-files/2593 "2019-04-15T14:58:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Buzul](https://avatars.discourse-cdn.com/v4/letter/b/b9bd4f/32.png) [@Buzul](https://forum.babylonjs.com/u/Buzul)\
**Post date:** [April 15, 2019, 2:58pm UTC](https://forum.babylonjs.com/t/about-mesh-positions-and-sizes-in-gltf-files/2593/1 "2019-04-15T14:58:47Z")

</div>

Hi everyone…  
I’m working with gltf files. I’m importing gltf files without any problem my scene viewing well. But when i want catch position and size; giving error.

error message is “materialName.getBoundingInfo is not a function”

I’m using this line:  
var size = materialName.getBoundingInfo().boundingBox.extendSize;

And also i tryed same code in PG it’s working well…  
I’m trying to find to solution since approximetly 5 hours…

I think i need some help ☹

---

<div class="post-metadata">

**Author:** ![JCPalmer](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jcpalmer/32/42_2.png) [@JCPalmer](https://forum.babylonjs.com/u/JCPalmer)\
**Post date:** [April 15, 2019, 3:01pm UTC](https://forum.babylonjs.com/t/about-mesh-positions-and-sizes-in-gltf-files/2593/2 "2019-04-15T15:01:55Z")

</div>

`getBoundingInfo()` is a function of the mesh, not the material, so that is probably a good place to start.

---

<div class="post-metadata">

**Author:** ![Buzul](https://avatars.discourse-cdn.com/v4/letter/b/b9bd4f/32.png) [@Buzul](https://forum.babylonjs.com/u/Buzul)\
**Post date:** [April 16, 2019, 11:12am UTC](https://forum.babylonjs.com/t/about-mesh-positions-and-sizes-in-gltf-files/2593/3 "2019-04-16T11:12:26Z")

</div>

It’s my mistake… Thank you…
