12ebc80e15
* Holes and cuts: count the bodies a cut works on in the cost tests A test helper, cut_work, adds a feature at the end of a design and reports how many bodies its cut ran booleans on and which bodies it left exactly as they were (same geometry, key and face names). A new test pins that a cut still goes through the boolean where its tool touches a face, runs along an edge, passes a hair beside a body or drills into a dome. The sheet metal hole (#10226) and cosmetic thread (#10227) work reuse the helper for their own shortcuts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Holes and cuts: leave bodies the tool cannot reach untouched without a full cut A cut ran a whole boolean against every body of its component, and for a body its tool does not reach that boolean only handed the body back: about 7 ms per body, so a hole in a design of 200 blocks took 1.3 s. Now a body whose box lies clear of every tool's box is left as it is. Both boxes are their meshes' grown past how far the exact faces can curve out from them, the same test sheet metal cuts already use, so a tool that touches a body, grazes it or drills into a dome still goes through the boolean. Bodies shown in another frame, mesh bodies and Intersect (which removes the bodies it misses) are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Cosmetic tap markings: look for their cylinder only in nearby bodies A tap marking (a Thread feature, or the marking of a tapped hole) looked for the cylinder at its point in every body of the design, and each search meshes the body afresh: with many bodies and many markings that grew quadratically (200 markings on 200 cylinders: 33 s of a 33 s run). A body is now passed over when its box, from the mesh it keeps and grown past that mesh's deflection, lies farther from the point than the search itself would look (a twentieth of the body's size, plus its own mesh's deflection). The search finds no face there, so the marking and everything else stay the same. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>