Merge pull request #1014 from Abextm/jarvis-assert

jarvis: Allow null points
This commit is contained in:
Adam
2018-03-19 18:00:11 -04:00
committed by GitHub

View File

@@ -79,7 +79,11 @@ public class Jarvis
}
}
assert next != null;
// Points can be null if they are behind or very close to the camera.
if (next == null)
{
return null;
}
assert ch.size() <= points.size() : "hull has more points than graph";
current = next;