mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-01 04:40:23 +02:00
Bugfix in hull() due to change in first_noncollinear()
This commit is contained in:
@@ -88,7 +88,7 @@ module hull_points(points, fast=false) {
|
|||||||
function hull2d_path(points) =
|
function hull2d_path(points) =
|
||||||
(len(points) < 3)? [] : let(
|
(len(points) < 3)? [] : let(
|
||||||
a=0, b=1,
|
a=0, b=1,
|
||||||
c = first_noncollinear(a, b, points, 2)
|
c = first_noncollinear(a, b, points)
|
||||||
) (c == len(points))? _hull2d_collinear(points) : let(
|
) (c == len(points))? _hull2d_collinear(points) : let(
|
||||||
remaining = [ for (i = [2:1:len(points)-1]) if (i != c) i ],
|
remaining = [ for (i = [2:1:len(points)-1]) if (i != c) i ],
|
||||||
ccw = triangle_area(points[a], points[b], points[c]) > 0,
|
ccw = triangle_area(points[a], points[b], points[c]) > 0,
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
BOSL_VERSION = [2,0,209];
|
BOSL_VERSION = [2,0,210];
|
||||||
|
|
||||||
|
|
||||||
// Section: BOSL Library Version Functions
|
// Section: BOSL Library Version Functions
|
||||||
|
Reference in New Issue
Block a user