Closed rjgriffin42 closed 6 years ago
This test additionally fails, which should pass. It is likely the cause of the other failure.
for (int i = 0; i < ITERATIONS; i++)
{
Point2D pointA = EuclidCoreRandomTools.nextPoint2D(random, 10.0);
Point2D pointB = EuclidCoreRandomTools.nextPoint2D(random, 10.0);
List<Point2D> points = new ArrayList<>();
points.add(pointA);
points.add(pointB);
points.add(pointA);
points.add(pointB);
int expectedHullSize = EuclidGeometryPolygonTools.inPlaceGiftWrapConvexHull2D(points, 4);
assertEquals(2, expectedHullSize);
}
Ok thanks for the test, I'll work on a fix.
Addressed in ed4cc900f5ef121370cae3494b8dd2dd71657224
The following test passes:
while the following test fails:
Something in the giftwrapping of the vertices is not functioning properly.