garrett-may/art-gallery-problem

Triangulation is broken

Closed this issue · 1 comments

Triangulation does not always work correctly:

image

Note the occasional line crossing the polygon.

This was due to:

  • Not considering points on the edges of a triangle
  • Not having an epsilon for points on a line