i've sent a fix so this is checked at least in debug mode: https://github.com/openframeworks/openFrameworks/pull/4365
and no since later in the for loop, you are doing; mesh.addVertex(poly[i+1]); so you are also accessing the last vertex with that
i've sent a fix so this is checked at least in debug mode: https://github.com/openframeworks/openFrameworks/pull/4365
and no since later in the for loop, you are doing; mesh.addVertex(poly[i+1]); so you are also accessing the last vertex with that