Input data are not always guaranteed to have delaunay solution, and there is no way to verify it other then call Delaunator.
But in this case Delaunator throws error, so to process this call correctly we have to wrap it into try/catch, which is not obvious, not documented, and not convenient.
I suppose that we do not need this error at all, 'cause there is more simple way to get the same info: empty output arrays.
Input data are not always guaranteed to have delaunay solution, and there is no way to verify it other then call
Delaunator
.But in this case Delaunator throws error, so to process this call correctly we have to wrap it into try/catch, which is not obvious, not documented, and not convenient.
I suppose that we do not need this error at all, 'cause there is more simple way to get the same info: empty output arrays.