Search code examples
javascriptthree.jsvertices

Three.js - Trying to understand the vertices array data within a js file


I am trying to understand the vertices array data within a js file. Does anyone know what all those numbers inside the vertices array are? Are they the position (x,y,z) of each vertex? Here is an example of a js file.


Solution

  • In Blender exported JSON files, each of them are coordinates, so they are to be read by 3 (like DNA).

    [x1, y1, z1, x2, y2, z2,....,xn, yn, zn]