Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,18 @@ public void testLenGuessSeesTheArc() throws Exception {
guess < 3.9);
}

/** Guard: convexHull was already arc-aware via CRV-OPS and must stay so. */
/**
* Guard: convexHull is the H-CV laser -- a CurvePolygon that keeps the
* exposed arc, not the area-50 control-point polygon. ConcaveHull
* remains a different product (static, no virtual dispatch).
*/
public void testConvexHullStillArcAware() throws Exception {
double area = HullFunctions.convexHull(read(COMPOUND)).getArea();
Geometry hull = HullFunctions.convexHull(read(COMPOUND));
assertTrue("H-CC convex hull is a CurvePolygon, not a densified POLYGON",
hull instanceof org.locationtech.jts.geom.curve.CurvePolygon);
double area = hull.getArea();
assertEquals("exact H-CC area is 50 + 12.5 acos(0.6)",
50.0 + 12.5 * Math.acos(0.6), area, 1.0e-9);
assertTrue("convex hull should exceed the control-point hull, got " + area,
area > CONTROL_POINT_AREA + 10.0);
}
Expand Down
Loading
Loading