Skip to content

Commit

Permalink
Simplify line x line check
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstace committed Nov 18, 2023
1 parent ee1bbd9 commit d900e6f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions geom/dcel_re_noding.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,6 @@ func reNodeGeometries(g1, g2 Geometry, mls MultiLineString) (Geometry, Geometry,
appendNewNodesForLineXLine := func(ln line, cuts []XY) []XY {
cut.lnIndex.tree.RangeSearch(ln.box(), func(i int) error {
other := cut.lnIndex.lines[i]
eps := maxULPSize * 0x200 // TODO: this is an alteration
if !ln.hasEndpoint(other.a) && distBetweenXYAndLine(other.a, ln) < eps {
cuts = appendNewNode(cuts, nodes, ln, other.a)
}
if !ln.hasEndpoint(other.b) && distBetweenXYAndLine(other.b, ln) < eps {
cuts = appendNewNode(cuts, nodes, ln, other.b)
}
inter := ln.intersectLine(other)
if !inter.empty {
if !ln.hasEndpoint(inter.ptA) {
Expand Down

0 comments on commit d900e6f

Please sign in to comment.