Vertex buffers contain not just positions, but many other pieces of information. If you use Dev Tools to inspect vertexBuffer and it’s definition, it will give you more hints on what’s inside.
after reading you feedback I keep looking and I can’t find something that looks like a list of vertex, there is plenty information about other Graphix variables though.
Another search makes me try to use the function Lock of the vertex buffer but it seems that the returned array of bytes must be converted to a compatible format after returning it but can’t find a piece of information about these in the reference
Also, the vertex iterator makes me think that there must be a way to access my vertex list.
// I get the vertex buffer and I fill a Vertex iterator with it
this.itera = new pc.VertexIterator(this.entity.model.model.meshInstances[0].mesh.vertexBuffer);
// i check the number of values in the element POSITION
this.puntos = this.itera.element.POSITION.array.length;
// and last i cicle througth them
for(i = 0;i < this.puntos;i++ )
this.itera.element.POSITION.array[i];
Im not sure what dos it mean each value I’m about to try X,e Y , Z ,X ,Y, Z and try to print the values