Sweep Line to identify interior points

Click on the canvas to add vertex and construct a simple polygon.
In blue each vertex that is a ear vertex.