P2.3 bite vs hole (OV-P2 / Bar 2) - #18
Open
grootstebozewolf wants to merge 1 commit into
Open
Conversation
H-SHELL-HOLE-CROSS is the first face walk: even-n hole ∩ other shares the clip edge, and new edge ⊂ other.shell is a bite, not a punched hole. Overlay splices that bite or punches the leftover. H-SHELL-HOLE-X stays a named miss. No noder in jts-core. Co-authored-by: Jeroen Bloemscheer <grootstebozewolf@users.noreply.github.com>
This was referenced Aug 16, 2026
grootstebozewolf
marked this pull request as ready for review
August 16, 2026 12:49
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.
Stacked on
cursor/p22-overlap-as-edge-632c@ dd85f92 (draft #17). Do not merge this into #7. This is OV-P2 / Bar 2, not OV-P1. Does not merge #12 / #13 / #15 / #16 / #17 / #7. Does not push tofeature/sfa-curve-rgror master.Sentence
The noder is the named-miss suite, one assembly rule at a time. Nodes (P2.1), overlap-as-edge (P2.2), then bite vs hole. Densify is never a noder.
What this is
P2.3 is the first face walk, and only this predicate:
If the new edge is a subset of the other shell, it is a bite, not a hole.
H-SHELL-HOLE-CROSSis the fixture: HOLE_STRADDLE vs HALF_RIGHT. The rectangular hole straddles the vertical diameter. Even-nhole ∩ othershares that clip edge(0 1)–(0 2). A punch would guess hole vs bite. This rung walks the P2.1 nodes on the hole ring and certifies the clip edge ⊂ other.shell.Overlay then splices the bite (CAP / holed SUB) or punches the leftover hole (CUP). Reverse SUB joins the solid leftover with the bite face. XOR is both. Package-private
BiteVsHole. ReusesCurveSegmentString,CurveSegmentNoder,SameOuterHoleOverlay,TwoNodeClip. No new public API. No noder injts-core. Name is OverlayNGCurve.Bite vs hole vs still-named-miss
(0 1)–(0 2)⊂ HALF_RIGHT diameter. CAP is Q1 minus the right half-rectangle (a shell, not an interior ring). CUP punches the leftover left half. Exact,isApproximate()=false.assertNullstays. Not P2.4.What this is not
H-SHELL-HOLE-X— 3-ring arrangement)SegmentString/Noderin jts-core)feature/sfa-curve-rgr/ PR SFA/SQL-MM curve awareness: Curve rename, arc-aware operations, OverlayNGCurve ratchet (#1195 RGR series) #7 / locationtech masterVerify
All green after this revision:
CurveSegmentStringTest16 / 0 (hole-ring nodes(0 1)/(0 2); Geometry-level pair still null)CompoundCurveShellOverlayTest25 / 0 (HOLE-CROSS bite CAP/CUP/SUB/XOR; HOLE-X staysassertNull)CircularArcOverlayTest11 / 0CircularDiscOverlayTest12 / 0CircularDiscPolygonOverlayTest7 / 0CircularLineOverlayTest7 / 0OverlayNGCurvePhase0Test19 / 0OverlayNGCurveRatchetTest46 / 0 (hole-straddle EEEE both orders)OverlayNGCurvePerfGateTest80 / 0 (15% slack)jts-curvesucceededSlack stays 15%. Overlay name is OverlayNGCurve. No new public API. No noder was written in jts-core.