NOAA-ORR-ERD / cell_tree2d

Cell Tree data structure for fast searching of an unstructured grid for the polygon containing the specified point
16 stars 11 forks source link

Crash with all-zeros nodes #14

Open ChrisBarker-NOAA opened 9 months ago

ChrisBarker-NOAA commented 9 months ago

See:

https://github.com/NOAA-ORR-ERD/gridded/issues/79

This, of course and invalid operation, but ideally it wouldn't hard crash -- some checks =for mesh validity should be added:

Maybe if there are any zero-areas cells?

Or if any cells contain duplicate vertexes?

Or debug that example and see what operation is making teh crash, and write e check that avoids that particular issue.