mapbox / earcut

The fastest and smallest JavaScript polygon triangulation library for your WebGL apps
ISC License
2.21k stars 207 forks source link

Empty output #140

Closed vahidalizad closed 4 years ago

vahidalizad commented 4 years ago

Executing earcut([0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1], null, 3) gives [] I don't get what is wrong

mourner commented 4 years ago

It's degenerate in the xy plane. See #21