Skip to content

Commit

Permalink
Merge pull request #194 from stanch/patch-1
Browse files Browse the repository at this point in the history
Fix Shape & Multiline intersection
  • Loading branch information
alexbol99 authored Sep 29, 2024
2 parents 32278e3 + ebc0a16 commit cd2fb20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/algorithms/intersection.js
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ export function intersectShape2Shape(shape1, shape2) {
export function intersectShape2Multiline(shape, multiline) {
let ip = [];
for (let edge of multiline) {
ip = [...ip, ...intersectShape2Shape(edge, edge.shape)];
ip = [...ip, ...intersectShape2Shape(shape, edge.shape)];
}
return ip;
}
Expand All @@ -659,4 +659,4 @@ export function intersectMultiline2Multiline(multiline1, multiline2) {
}
}
return ip;
}
}

0 comments on commit cd2fb20

Please sign in to comment.