I'm using THREEjs's exporter to export a 2D polygon plane. The resulting JSON gives me the vertices. I'm trying to properly order these vertices as to make the actual polygon shape, without luck.
Right: Default vertex order
Left: Actual order
I manually put the needed order together and found it to be this.
0,1,2,3,4,5,6,7,8,9,11,13,17,16,15,19,21,22,23,25,27,29,39,38,37,36,35,34,33,32,31,30,28,26,24,20,18,14,12,10 (element represents index in default order).
Is there a pattern to this ordering? Does the JSON file reveal more information on how to properly order it? Seems the only other information in there is the
faces array. I do not understand how to read it or what it represents.