A* Pathfinding Project

Weird GetContour behaviour


I’m using the GetContours solution from GraphUtilities to draw outlines of allowed move in a grid. But when there’s a single blocking node within the area I run GetContours for, this happens:

When the single blocking node is outside of the outline, it works as intended:

Except the yellow outline does the same here too.

Any idea why this happens?