[tlo,thi]∋sk first membership change,halved m times,t=21(tlo+thi)
illinois
t=fb−fatafb−tbfa,f=ϕ(a+td),fa←fa/2 if a is kept twice in a row
normal
n=∣∇ϕ∣∇ϕ,∂kϕ≈2δϕ(p+δek)−ϕ(p−δek)
Order
1
Assumes
each step a→b, d=b−a; the first crossing t∈(0,1], entering or leaving; crossings at t≤10−12 are ignored, at t=1 counted; grazing contacts and zero steps are not crossings
analytic (exact): balls, boxes and rounded boxes (the hull of the intervals of the inner box widened along one axis and the discs, edge cylinders and corner balls of radius f), polygonal 2D shapes (∣d×e∣>10−14∣d∣∣e∣, u∈[−10−12,1+10−12]), slanted tubes and affine images of them, triangle meshes (Möller–Trumbore in the cells of a grid) and Fourier surfaces whose hits were refined onto the surface
sampled otherwise: membership at s+1 points t=k/s (sampless=64), then Illinois steps on the level set to 2−m if it changes sign, else m bisections on membership (iterationsm=40)
normals point out of the region where contains is true: radial for balls, ∓sign(dk)ek for boxes, (ey,−ex)/∣e∣ for counter-clockwise edges; the level-set gradient (δ=10−7 times the extent) or 64 (2D) or 128 (3D) membership probes for sampled shapes; flipped for inverted shapes
a GeometryCollection: each object on its own path, the earliest crossing wins, the first listed on a tie
the order is that of the bisection on membership in the final bracket width 2−m; the analytic paths are exact and Illinois converges superlinearly (about 1.44)