POLYINT: fix comparison for different-length polygons
This commit is contained in:
parent
d81b6b1cec
commit
61e0063d78
@ -83,7 +83,7 @@ sortLexPolys (pA'@(_:_), pB'@(_:_)) =
|
|||||||
-- current point of polygon B, so insert it into the resulting
|
-- current point of polygon B, so insert it into the resulting
|
||||||
-- queue and traverse the rest.
|
-- queue and traverse the rest.
|
||||||
| ptCmpY (fromMaybe negInfPT (id' <$> Q.first pA))
|
| ptCmpY (fromMaybe negInfPT (id' <$> Q.first pA))
|
||||||
(fromMaybe posInfPT (id' <$> Q.first pB)) == GT
|
(fromMaybe negInfPT (id' <$> Q.first pB)) == GT
|
||||||
= Q.pushFront (go (maybeShift . snd . Q.popFront $ pA) pB)
|
= Q.pushFront (go (maybeShift . snd . Q.popFront $ pA) pB)
|
||||||
(fromJust . Q.first $ pA)
|
(fromJust . Q.first $ pA)
|
||||||
-- Same as above, except that the current point of polygon B
|
-- Same as above, except that the current point of polygon B
|
||||||
|
Loading…
Reference in New Issue
Block a user