}
catch(IndexOutOfRangeException ex)
{
// Set IndexOutOfRangeException to the new exception's InnerException.
Debug.LogError("index parameter is out of range : " + aze + " " + key);
throw new ArgumentOutOfRangeException("index parameter is out of range : " + aze, ex);
}
if (start != -1 && start != hullNext[start]) break;
}
`
EDIT : I am using float coords instead of int, maybe it breaks the hash code.
EDIT 2 : I made some tests with only 1000 vertices and it happens too frome time to time, again with E+09 float hash.
Does not happen in JS version, so I'm going to close this unless you can provide a reproducible test case, and assume that's an issue with your ported code.
hi,
I made a C# version of delaunator but I have the following error with large vertex count. Does it happen to you too ? the error :
index parameter is out of range : -128 -2,147484E+09
so key is -2,147484E+09 and aze is -128
at lines 190 in your code
The code ` key = hashKey(x, y); for (int j = 0; j < hashSize; j++) { try { aze = (int)Math.Round((key + j) % hashSize); start = hullHash[aze];
`
EDIT : I am using float coords instead of int, maybe it breaks the hash code. EDIT 2 : I made some tests with only 1000 vertices and it happens too frome time to time, again with E+09 float hash.