e661e6f809
* inspect.clearance: pairs whose bodies did not change are not measured again Each clearance check measured every close pair again, though between two checks usually only a few bodies change or move. Results are now kept per pair, keyed by both bodies' geometry and placement and the check's settings; a pair whose two bodies are unchanged is taken from that cache. With 40 overlapping parts, a check after moving one of them took 0.8 s instead of 23 s (741 of 780 pairs reused). Pairs that could not be worked out are tried again each time. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * inspect.clearance: boxes and placed keys exactly as before the reuse The pair boxes are taken over the mesh's triangles with finite corners, as a distance shape's are, so pruning is unchanged. A placed body's identity now includes its model body's own frame, so two placements are never mistaken for one another. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * inspect.clearance: a large body is meshed once for all its pairs Each pair that touches cuts the larger body down to the pair's region with a kernel boolean, and that boolean meshed the whole body twice: once for its checks and once inside the intersection. A sheet with 600 faces paid about 2.5 s per pair for meshes that were the same every time. A body can now keep its meshes for reuse (Body::keeping_meshes); its booleans take the meshes from there, and the intersection takes its shell meshes from there too (truck-shapeops: and_with_history_meshed). Clearance uses such copies for one check. Results are unchanged to the bit. On a 3 x 2 m sheet with bends and 300 holes, the clip took 0.23 s per pair instead of 2.6 s, and 24 rivets took 5.6 s instead of 16.5 s. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * inspect.clearance: pins on one cylinder with their hole are answered or reported in seconds A pin seated line to line in its hole, on its axis, and with a blend running into its wall (a fillet under a head) sent the boolean through minutes of retries that ended unchecked; a pin a hair off its hole's axis was passed as clear. Clearance now asks first whether the pair holds such a pin (from the faces' surfaces alone). On its axis the boolean gets a few tries, which answer plain pins at once; a hair off, or when those tries fail, the shared volume is worked out apart by coaxial_overlap, which now also takes the zero-offset, equal-radius case, moves the hole's wall when a blend keeps the pin's from moving, and checks its band more tightly. What neither answers is reported as unchecked, naming the pin. The kernel gains with_attempt_budget: the booleans run inside it get a number of tries of the kernel's own intersection between them, the same on every machine. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * inspect.clearance: the pin tests sit beside the other measured pairs, not at the file's end Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * inspect.clearance: the bodies left whole meet their booleans with their meshes kept A body that meets several others at one size (a bracket with balls pressed into it) was meshed again for each pair's intersect: only the clipping used the copies that keep their meshes. The intersect, the pin work and the union check now take those copies too. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * Near-coaxial overlap: ten tries per intersection, enough for a flush head pulled back #1984's headed pin made before its plate needs more than eight. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Aac7mP9rthK3WsPpPRvCsF --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Co-authored-by: bherbruck <brennen.herbruck@gmail.com>