Repository navigation
GEOM-04A: bounded exact triangle distance and contact predicates - #62
Merged
Merged
Conversation
Owner
Author
|
bugbot run verbose=true |
Contributor
|
Bugbot request id: serverGenReqId_13f615ca-640c-4990-9c6f-2e70e23368ba |
Contributor
Bugbot rules debugNo rules were used for this review. https://cursor.com/docs/bugbot#team-rules Bugbot request id: serverGenReqId_13f615ca-640c-4990-9c6f-2e70e23368ba |
Contributor
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit ca0360b. Configure here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GEOM-03 cannot refine overlapping bounding boxes. This first GEOM-04 slice adds an independent Python kernel for triangle, segment and point distances, including interior edge-face intersections, coplanar contact and degenerate geometry.
Exact rational predicates and squared minima are converted to outward-rounded distance intervals. Witness coordinates and exact feature IDs are retained. Bounded feature work and precision limits return unknown rather than false separation. No physical qualification or upstream transform certification is claimed.
TDD: 39 focused tests pass, with observed RED for missing kernel and reviewer-requested feature IDs. Separate mathematical review passed: 120 exact-rational KKT reference cases enclosed correctly, plus 300 numerical comparison cases. Full CI must pass for this exact head before merge. GEOM-04B/C/D integration stays outside this PR.
Includes the source-linked GEOM-04 plan and roadmap links. Gemini is not a gate; Cursor Bugbot is requested alongside independent review. PR #3 and unrelated report edits are untouched.
Note
Low Risk
New isolated geometry module and tests only; conservative unknown on limits; no service/UI or clearance pipeline changes in this PR.
Overview
GEOM-04A adds a standalone exact-rational geometry kernel in
pyfoldable/geometry/triangle_distance.pyfor point–triangle, segment–segment, segment–triangle, and triangle–triangle queries. Results are outward-roundedlower_m/upper_mintervals with witness points,contact_status, geometric feature IDs, and a boundedmax_feature_testsbudget; precision or budget limits yield conservativeunknown([0, ∞]) instead of falseseparated.Triangle–triangle logic explicitly tests edge–face interior crossings before closest-feature pairs. Docs add
geom04_execution_plan.mdand link GEOM-04 from the Python research and validation roadmaps as a multi-slice plan (04A delivered; 04B–04D not in this PR). 39 analytic/metamorphic tests intests/geometry/test_triangle_distance.py; nosurface_clearanceor UI wiring yet.Reviewed by Cursor Bugbot for commit ca0360b. Configure here.