Repository navigation
Conversation
When an extension cannot be built, stop bisecting as soon as a buildable midpoint meets the requested distance or supplies a certified upper bound. Co-Authored-By: OpenAI Codex <noreply@openai.com>
Use the unsplit control polygon to discard short candidates and retain their lower bracket for the length solve. Refine near the target and verify distances reported by a refusal. Co-Authored-By: OpenAI Codex <noreply@openai.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
When a requested surface extension cannot be built, the solver now stops bisecting as soon as a candidate meets the target length or provides an upper bound. It reuses midpoints already proved short by their control polygons. Accepted extensions still pass the full length check at the existing tolerances.
On two existing geometry tests, the solver made fewer attempts to construct a candidate surface. Both tests passed the same length and geometry checks on both revisions.
Run
cargo test -p solidcore --lib surface::extend::for the regressions. The new bracket test took 10 construction attempts and enforces a limit of 12.Reproduce the counts in the table
On each revision (
74a23617cand2cb8c65c4), add this at the start ofsolveincrates/solidcore/src/surface/extend.rsto count calls to the candidate builder.Summary by CodeRabbit