Closed jfirebaugh closed 9 years ago
Yes, after I switched the JS implementation to indexed output, the output indices now reference the original input array. Unused vertices are a rare occurrence anyway, and reusing the input array makes performance better.
Fixed by #10.
Discarding unused vertices makes earcut.hpp output unworkable for mapbox-gl-native due to the following:
GL_LINES
with indexed verticesThe JS implementation does not remove unused vertices.
cc @mourner @kkaefer to double check my logic.