Bugfix for polygon_line_intersection() for failing to find intersection.

This commit is contained in:
Revar Desmera 2020-02-28 21:37:16 -08:00
parent 3c3318de63
commit 7e0512e5f9
2 changed files with 2 additions and 1 deletions

View File

@ -721,6 +721,7 @@ function polygon_line_intersection(poly, line, bounded=false, eps=EPSILON) =
plane = plane3pt(p1,p2,p3),
res = _general_plane_line_intersection(plane, line, eps=eps)
)
is_undef(res)? undef :
bounded[0]&&res[1]<0? undef :
bounded[1]&&res[1]>1? undef :
let(

View File

@ -8,7 +8,7 @@
//////////////////////////////////////////////////////////////////////
BOSL_VERSION = [2,0,133];
BOSL_VERSION = [2,0,134];
// Section: BOSL Library Version Functions