Press G or tap to generate a new random hull.
An unbreakable convex hull library that uses exact arithmetic instead of
floating-point epsilon hacks. Every IEEE-754 double is imported as an exact
dyadic value (mantissa × 2exp backed by BigInteger),
and all geometric predicates are computed without rounding.
Convex hull construction is unusually sensitive to numerical precision. The algorithm repeatedly asks questions like “is this point above or below that face?” or “which faces are visible from this point?”. With floating-point arithmetic, nearly degenerate inputs can flip those decisions because of rounding error. One wrong predicate is enough to damage the hull. ExactHull replaces those fragile decisions with exact ones.
Exact arithmetic works well here because the algorithm never feeds constructed coordinates back into later geometry calculations. It only evaluates predicates on the original input points, so intermediate exact values stay bounded rather than growing with scene complexity.