Minimum distance between subdivision bodies 2026-10-14
For disjoint compact bodies, the minimum occurs on their boundaries. Patch bounding volumes give certified lower bounds and evaluated limit-point pairs give upper bounds. A branch and bound search refines promising patch pairs until the global bounds differ by the tolerance. Boundary distance alone cannot detect containment; touching, crossing or nested solid bodies have ordinary set distance zero. Negative overlap values require an additional convention such as translational penetration depth.
Past exam of the mathematics course of the University of Cambridge 2004 iii Paper 70 6 iii Solution Created 2026-10-03 Updated 2026-10-14
First distinguish the ordinary set distance from a signed overlap convention. Ordinary is zero whenever the bodies intersect, and is never negative. Without the positive-separation assumption, test boundary intersections using the subdivision search, and test containment when the boundaries are disjoint. In particular, concentric spheres of unequal radii have positive boundary separation but overlapping enclosed bodies. Include every connected component in the containment tests.
For a meaningful negative result choose translational penetration depth, with orientation fixed:Define signed separation as ordinary positive distance for disjoint bodies, zero at contact, and when their interiors overlap. This is explicit; the source does not specify which penetration convention its word “distance” intends. Simply negating the closest-boundary distance fails when boundaries cross, because that distance is already zero despite genuine interior overlap.
One implementable extension searches translation space. Obtain an initial separating translation by moving beyond along a coordinate direction, using the bodies' enclosing boxes; its norm is an upper bound on . Cover a translation box containing the radius- ball, subdividing it into cells. Each cell has a lower bound on , given by its box distance from the origin. At a sampled translation, perform certified boundary-intersection and containment queries. A nonoverlapping sample improves .
To discard a whole colliding cell, certify an interior witness: if lies inside and lies inside with inward clearance , then every translation with still overlaps. Boundary-distance and inside tests establish this certificate. Conversely, a separated sample with clearance remains separated under translations of norm less than away from it, by the triangle inequality. For a wholly free cell, use its point nearest the origin as a feasible translation, attaining its cell-norm lower bound. Refine cells whose status is uncertain and whose minimum norm is below ; discard certified-colliding cells and irrelevant farther cells. Keep the minimum cell-norm bound among cells that might contain a separating translation as . Stop when , reportingRefinement/inside certificates can be implemented from the same surface hierarchy with conservative geometric bounds. Exact contact may require further refinement to decide topology; at finite numerical tolerance report a contact/uncertainty interval instead of inferring overlap from intersecting boxes. This handles crossing and containment and searches for the smallest separating translation, rather than an arbitrary visible intersection depth.