-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ArrayIndexOutOfBoundsException: 0 in MPolygon #2
Comments
// small example of the error float[][] p = { Voronoi v = new Voronoi(p); |
// if called with 0 then this creates a non-array // which this then tries to access element 0 of, causing the error. |
but i think that the problem is actually that the MPolygon is ever being called with 0 problem in Voronoi constructor? |
I can confirm that this seems to fix the issue. I can try and create a pull request for this but is @leebyron still around to accept it. I ran into this when trying to regularize Voronoi graphs. |
PR it! |
@leebyron I made a pull and it fixed that issue that I was having and the issue that acdean was defining however if you have some more test cases to but it through that's probably smart. I've only been using the library for a week so my testing code is pretty limited |
Fixing issue #2 in Voronoi.java line 143
please see this thread on the processing forum
https://forum.processing.org/two/discussion/23772/paid-help-to-debug-patch
The text was updated successfully, but these errors were encountered: