What is geometry attributes count?

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?


Yes, count is the vertices number.

itemSize is the number of elements in the TypedArray for each vertex. Therefore, the array is count * itemSize long.


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.


yes exactly

1 Like