ofMesh.load(): found more vertices than specified in header

Hi, I’m writing a program that loads a ofMesh, adds faces to it and saves it again. The mesh becomes complex with time.

[ error ] ofMesh: load(): 5076:found more vertices: 2767 than specified in header: 2766
[ error ] ofMesh: load(): "3 2752 2765 0"

The program is complaining when loading the most recent mesh, saying that there are more vertices than specified in the header. I’ve counted the vertices and it has the right amount. I also counted the faces, but there seems to be one too many.

Is this a bug? The meshes were generated by ofMesh.save(). I have 37 generations and they all worked until the last one. Here the two files:

ply.zip (73.6 KB)