Bugfix: wrong logic for concave_points() and convex_points()