Closed MJohnson459 closed 9 months ago
as you noticed on #46, this is mostly a question of precision. If you multiply all your coordinates by 10, it should work
I'm just going to close this. I can still cause the pathing to fail with a bad mesh but I can't find a good, small, sample that fails. In any case the real bug is in the bad mesh and it shouldn't really be up to this library to validate it. And it won't infinite loop now at least so I would say this is solved.
In some circumstances I'm hitting an infinite loop when trying to generate a path. It seems to be related to the
delta
.For example, with this mesh and a delta of
0.01
:These path fails to generate:
With a delta of
0.1
, I can't get the infinite loop to happen on this mesh but these paths are wrong:With all that said, I'm assuming there is something wrong with the mesh but as far as I can tell, it is valid based on the documentation. For reference it looks like this with the failures generally happening with polygons 0 and 1: