Bugfix in hull() due to change in first_noncollinear()

This commit is contained in:
Revar Desmera 2020-03-21 15:16:31 -07:00
parent e635755528
commit b8e5171e3d
2 changed files with 2 additions and 2 deletions

View file

@ -88,7 +88,7 @@ module hull_points(points, fast=false) {
function hull2d_path(points) =
(len(points) < 3)? [] : let(
a=0, b=1,
c = first_noncollinear(a, b, points, 2)
c = first_noncollinear(a, b, points)
) (c == len(points))? _hull2d_collinear(points) : let(
remaining = [ for (i = [2:1:len(points)-1]) if (i != c) i ],
ccw = triangle_area(points[a], points[b], points[c]) > 0,

View file

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