You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I found out that this bug happens when you have two points on plane with the same y coord. Then there are NaN values when searching for parabolas intersections at: getXofEdge. Unfortunately I wasnt able to fix that, but there is workaround for that - just generate random vertices with double y coord or if you dont care about some of the vertices, just delete duplicated y coordinates. This may help ;)
ArrayList<Point> points = new ArrayList<Point>();
Set<Point> set = new LinkedHashSet();
set.addAll(points);
points.clear();
points.addAll(set);
Example:
[(0.51, 0.31), (0.41, 0.71), (0.61, 0.71), (0.11000000000000001, 0.21000000000000002), (0.11000000000000001, 0.61), (0.71, 0.71), (0.31, 0.61), (0.21000000000000002, 0.01), (0.41, 0.31), (0.51, 0.01)]
The text was updated successfully, but these errors were encountered: