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
For certain configurations of (x,y) points, matplotlib.delaunay.delaunay() produces illegal triangulations - in particular they contain overlapping triangles.
As a consequence, the "Triangulation" class cannot be used for such data, as it fails during construction (overlapping triangles break the assumptions used for the convex-hull computation).
A sample dataset is available at https://dl.dropbox.com/u/6960989/bad_tri/points.csv
The attached image is zoomed-in on some overlapping triangles in the resulting triangulation.
(will try to attach some code later)
The text was updated successfully, but these errors were encountered:
Also attached are a csv containing the dataset, and two zoom-ins of the plot.
Note that I have seen this problem many times - this is just the smallest example I managed to sit down and track. Let me know if more examples are required.
As discussed on the matplotlib-devel mailing list, the proposed solution is to replace the existing matplotlib Delaunay triangulation code with Qhull. I will investigate.
For certain configurations of (x,y) points, matplotlib.delaunay.delaunay() produces illegal triangulations - in particular they contain overlapping triangles.
As a consequence, the "Triangulation" class cannot be used for such data, as it fails during construction (overlapping triangles break the assumptions used for the convex-hull computation).
A sample dataset is available at https://dl.dropbox.com/u/6960989/bad_tri/points.csv
The attached image is zoomed-in on some overlapping triangles in the resulting triangulation.
(will try to attach some code later)
The text was updated successfully, but these errors were encountered: