# What is geometry attributes count?

**URL:** <https://discourse.threejs.org/t/what-is-geometry-attributes-count/21498>\
**Category:** Questions\
**Tags:** gltf-loader, gltf, geometry\
**Created:** [December 11, 2020, 10:22am UTC](https://discourse.threejs.org/t/what-is-geometry-attributes-count/21498 "2020-12-11T10:22:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Quan\_Le](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/quan_le/32/36133_2.png) [@Quan\_Le](https://discourse.threejs.org/u/Quan_Le)\
**Post date:** [December 11, 2020, 10:22am UTC](https://discourse.threejs.org/t/what-is-geometry-attributes-count/21498/1 "2020-12-11T10:22:41Z")

</div>

Hi everyone!

I am working on glTF model and need to extract some information from geometry attributes.  
The attributes properties are different between the meshes.  
But each attribute has the `count` property and I figured out all the attributes (normal, position, tangent, uv, …) has the same `count` value of vertices (like this image below, all value are `1590`).  
Is that correct?

Thanks,

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/c/c70bdb4e6c3dd2133e122161614e6540aa6a4f26.png)

---

<div class="post-metadata">

**Author:** ![felixmariotto](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/felixmariotto/32/5928_2.png) [@felixmariotto](https://discourse.threejs.org/u/felixmariotto)\
**Post date:** [December 11, 2020, 10:30am UTC](https://discourse.threejs.org/t/what-is-geometry-attributes-count/21498/2 "2020-12-11T10:30:33Z")

</div>

Yes, `count` is the vertices number.

`itemSize` is the number of elements in the [TypedArray](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray) for each vertex. Therefore, the array is `count * itemSize` long.

---

<div class="post-metadata">

**Author:** ![Quan\_Le](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/quan_le/32/36133_2.png) [@Quan\_Le](https://discourse.threejs.org/u/Quan_Le)\
**Post date:** [December 11, 2020, 10:41am UTC](https://discourse.threejs.org/t/what-is-geometry-attributes-count/21498/3 "2020-12-11T10:41:12Z")

</div>

Hi @felixmariotto,

Thanks for your answer.  
So the vertices number (means `count`) should be the same for each attributes?  
Such as `normal.count = position.count = ... = 1590.`  
Right?

Thanks,

---

<div class="post-metadata">

**Author:** ![felixmariotto](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/felixmariotto/32/5928_2.png) [@felixmariotto](https://discourse.threejs.org/u/felixmariotto)\
**Post date:** [December 11, 2020, 11:48am UTC](https://discourse.threejs.org/t/what-is-geometry-attributes-count/21498/4 "2020-12-11T11:48:52Z")

</div>

> [@Quan\_Le](#):
>
> So the vertices number (means `count` ) should be the same for each attributes?  
> Such as `normal.count = position.count = ... = 1590.`  
> Right?

yes exactly
