Skip to content

Commit

Permalink
revert the (gist of) broken fix to #3
Browse files Browse the repository at this point in the history
  • Loading branch information
akavel committed May 24, 2015
1 parent 72b0320 commit cb17578
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clipper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit cb17578

Please sign in to comment.