diff --git a/src/algorithms/intersection.js b/src/algorithms/intersection.js index c8fd94f..4a17fce 100644 --- a/src/algorithms/intersection.js +++ b/src/algorithms/intersection.js @@ -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; } @@ -659,4 +659,4 @@ export function intersectMultiline2Multiline(multiline1, multiline2) { } } return ip; -} \ No newline at end of file +}