mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-01 09:49:45 +00:00
Bugfix for path_self_intersections() with closed paths.
This commit is contained in:
parent
f4d6d9f2b9
commit
44feeab7e6
1 changed files with 1 additions and 0 deletions
|
@ -682,6 +682,7 @@ function path_self_intersections(path, closed=true, eps=EPSILON) =
|
|||
u = ((e.x*c.y)-(e.y*c.x)) / denom
|
||||
) [a1+t*(a2-a1), t, u]
|
||||
) if (
|
||||
(!closed || i!=0 || j!=plen-1) &&
|
||||
isect != undef &&
|
||||
isect[1]>=-eps && isect[1]<=1+eps &&
|
||||
isect[2]>=-eps && isect[2]<=1+eps
|
||||
|
|
Loading…
Reference in a new issue