mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-06 20:26:47 +02:00
Fixed errant array_subindex() references.
This commit is contained in:
@@ -372,10 +372,10 @@ function pointlist_bounds(pts) = [
|
|||||||
// path = The list of 2D path points for the perimeter of the polygon.
|
// path = The list of 2D path points for the perimeter of the polygon.
|
||||||
function polygon_clockwise(path) =
|
function polygon_clockwise(path) =
|
||||||
let(
|
let(
|
||||||
minx = min(array_subindex(path,0)),
|
minx = min(subindex(path,0)),
|
||||||
lowind = search(minx, path, 0, 0),
|
lowind = search(minx, path, 0, 0),
|
||||||
lowpts = select(path, lowind),
|
lowpts = select(path, lowind),
|
||||||
miny = min(array_subindex(lowpts, 1)),
|
miny = min(subindex(lowpts, 1)),
|
||||||
extreme_sub = search(miny, lowpts, 1, 1)[0],
|
extreme_sub = search(miny, lowpts, 1, 1)[0],
|
||||||
extreme = select(lowind,extreme_sub)
|
extreme = select(lowind,extreme_sub)
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user