From cb175780fc8ea5f3feff76756ce8724eed95ba66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Czapli=C5=84ski?= Date: Sun, 24 May 2015 22:06:15 +0200 Subject: [PATCH] revert the (gist of) broken fix to #3 --- clipper.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/clipper.go b/clipper.go index cfad8cd..057fe9f 100644 --- a/clipper.go +++ b/clipper.go @@ -388,10 +388,10 @@ func (c *clipper) possibleIntersection(e1, e2 *endpoint) { return // the line segments intersect at an endpoint of both line segments } - ////if numIntersections == 2 && e1.p.Equals(e2.p) { - //if numIntersections == 2 && e1.polygonType == e2.polygonType { - // return // the line segments overlap, but they belong to the same polygon - //} + //if numIntersections == 2 && e1.p.Equals(e2.p) { + if numIntersections == 2 && e1.polygonType == e2.polygonType { + return // the line segments overlap, but they belong to the same polygon + } if numIntersections == 1 { if !e1.p.Equals(ip1) && !e1.other.p.Equals(ip1) {