mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-01 14:00:30 +02:00
fix segment endpoint handling for intersections
This commit is contained in:
@@ -251,9 +251,11 @@ function _path_region_intersections(path, region, closed=true, eps=EPSILON) =
|
||||
isect = _general_line_intersection([a1,a2],[b1,b2],eps=eps)
|
||||
)
|
||||
if ( isect
|
||||
&& isect[1]> (si==0 && !closed? -eps: 0)
|
||||
// && isect[1]> (si==0 && !closed? -eps: 0)
|
||||
&& isect[1]>= -eps
|
||||
&& isect[1]<= 1+eps
|
||||
&& isect[2]> 0
|
||||
// && isect[2]> 0
|
||||
&& isect[2]>= -eps
|
||||
&& isect[2]<= 1+eps )
|
||||
[si,isect[1]]
|
||||
]);
|
||||
|
Reference in New Issue
Block a user