Open Ownezx opened 3 years ago
Given another situation with {numberOfPoints = 10, relaxation = 1, seed = 188} some pixels are not considered in any sites (see the black pixel between dark pink and dark blue on the bottom left of the image) :
This was found while trying to make a function that would find the site of the current position.
Thanks for bringing this up. I haven't looked at the code in quite sometime and I'm sure there are bugs here and there. If you manage to fix them, please submit a pull request. Otherwise in the future I might be able to revisit and fix!
As I was trying to use the library I came across two problems as I was using those function. First, the first column and line are always empty and uninitialized as can be seen on this image (although the unity background is grey, we can clearly see a black line and column on the quad):
Second, with a low amount of points sometimes the whole array is not set resulting in the following result when displaying it (This time the black region is not limited to the line and column):
The error was produced by attaching the following mono behaviour code attached below to a 100x100 scaled quad with settings {numberOfPoints = 4 or 5, relaxation = 1, seed = 130}:
If I do end up fixing the issues I will put a pull request.