Habrador / Computational-geometry

Computational Geometry Unity library with implementations of intersection algorithms, triangulations like delaunay, voronoi diagrams, polygon clipping, bezier curves, ear clipping, convex hulls, mesh simplification, etc
https://www.habrador.com/
MIT License
1.24k stars 150 forks source link

Cant find ear error when moving vertex upwards (EAR CLIPPING) #9

Open petifox opened 2 years ago

petifox commented 2 years ago

@Habrador Thanks for your time!

I have found a bug in the ear clipping script. The ear vertices list is empty, therefore the triangulation stops semi-finished.

The expected behavior would be the same triangulation but with a smaller hole. image image