mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-01-16 21:58:27 +01:00
Bugfix for polygon_line_intersection() for failing to find intersection.
This commit is contained in:
parent
3c3318de63
commit
7e0512e5f9
@ -721,6 +721,7 @@ function polygon_line_intersection(poly, line, bounded=false, eps=EPSILON) =
|
|||||||
plane = plane3pt(p1,p2,p3),
|
plane = plane3pt(p1,p2,p3),
|
||||||
res = _general_plane_line_intersection(plane, line, eps=eps)
|
res = _general_plane_line_intersection(plane, line, eps=eps)
|
||||||
)
|
)
|
||||||
|
is_undef(res)? undef :
|
||||||
bounded[0]&&res[1]<0? undef :
|
bounded[0]&&res[1]<0? undef :
|
||||||
bounded[1]&&res[1]>1? undef :
|
bounded[1]&&res[1]>1? undef :
|
||||||
let(
|
let(
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
BOSL_VERSION = [2,0,133];
|
BOSL_VERSION = [2,0,134];
|
||||||
|
|
||||||
|
|
||||||
// Section: BOSL Library Version Functions
|
// Section: BOSL Library Version Functions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user