P2.2 overlap-as-edge on CurveSegmentString (OV-P2 / Bar 2) - #17
Open
grootstebozewolf wants to merge 3 commits into
Open
P2.2 overlap-as-edge on CurveSegmentString (OV-P2 / Bar 2)#17grootstebozewolf wants to merge 3 commits into
grootstebozewolf wants to merge 3 commits into
Conversation
Teach the P2.1 strings that a shared run is an interval (same-circle sweep or collinear segment), not a pair of endpoints. A tangent pinch is a zero-length edge. nodes() stays the discrete set. No faces, no jts-core noder, no merge into PR #7. Co-authored-by: Jeroen Bloemscheer <grootstebozewolf@users.noreply.github.com>
Use a line that extends past the LineString member so public overlay cannot retain an operand. Helper still misses; public stays approximate. The noder names (2 0)–(10 0). Co-authored-by: Jeroen Bloemscheer <grootstebozewolf@users.noreply.github.com>
Unit discs at (0,0) and (2,0), d=r1+r2, kiss (1,0). Oracle EXT_TANGENT. nodes() stays null. Overlay stays null — a point is not a CurvePolygon. The noder names the zero-length edge. 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/p21-curve-segment-string-7422@ d3e0843 (draft #16). Do not merge this into #7. This is OV-P2 / Bar 2, not OV-P1. Does not merge #12 / #13 / #15 / #16 / #7. Does not push tofeature/sfa-curve-rgror master.Sentence
The noder is the named-miss suite, one assembly rule at a time. Nodes first (P2.1), then overlap as an edge. Densify is never a noder.
What this is
P2.1
CurveSegmentString+CurveSegmentNoderemit a discrete node set, ornull. MIXED was the first miss because collinear overlap is an interval, not a cheap node set.P2.2 teaches those strings that a shared run is an edge (an interval on one circle, or a collinear segment), not a pair of endpoints pretending to be the whole story.
CircleSweepOverlay.sharedSweepis the same-circle interval the kits already sew. The noder lifts that onto the string. Collinear overlap usesLineIntersector.COLLINEAR_INTERSECTIONendpoints as a segment. A different-circle tangent (intersectCircleslength 1, on both sweeps) is a zero-length degenerate edge. No face walk. NoCurvePolygonfor a kiss.Package-private. Reuses
CurveSegmentString,CircleSweepOverlay,intersectCircles,isOnSweep. No new public API. No noder injts-core. Name is OverlayNGCurve.Edges vs named misses
(-1 0)–(1 0).nodes()staysnull(not a point set). Overlay kit still refuses — no face walk.2.5π, already sewn byCircleSweepOverlay. Locked on the string. Endpoint-only kiss is not an interval.(5 0). Zero-width pinch (d+r=R). Overlay does not punch an annulus.nodes()staysnull.(1 0). Unit discs, centres(0,0)and(2,0),d=r1+r2. OracleFF2F01212(EXT_TANGENT).nodes()staysnull(not a 2-node set).CircularDiscOverlaystaysnull— a point is not a CurvePolygon.(2 0)–(10 0). Public helper still misses; public overlay stays approximate (R2). Not chordsaw-as-exact.null(P2.3 / P2.4).What this is not
H-SHELL-HOLE-CROSS)H-SHELL-HOLE-X)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 (TOUCH-ext pin added)CircularDiscOverlayTest12 / 0OverlayNGCurveRatchetTest44 / 0OverlayNGCurvePerfGateTest78 / 0 (15% slack)jts-curvesucceededSlack stays 15%. Overlay name is OverlayNGCurve. No new public API. No noder was written in jts-core. Overlay kits were not changed.