From 67af8c01c9ea6c738012b9a0fb1ebb697785fe5b Mon Sep 17 00:00:00 2001 From: Adrian Mariano Date: Fri, 17 Sep 2021 20:41:37 -0400 Subject: [PATCH] more dosgen appeasement --- edges.scad | 12 ++++++------ paths.scad | 6 +++++- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/edges.scad b/edges.scad index 3dfbe3c..11c4c62 100644 --- a/edges.scad +++ b/edges.scad @@ -155,12 +155,12 @@ function _edge_set(v) = /// Internal Function: _normalize_edges() /// Topics: Edges -// Usage: -// edges = _normalize_edges(v); -// Description: -// Normalizes all values in an edge array to be `1`, if it was originally greater than `0`, -// or `0`, if it was originally less than or equal to `0`. -// See Also: edges(), EDGES_NONE, EDGES_ALL +/// Usage: +/// edges = _normalize_edges(v); +/// Description: +/// Normalizes all values in an edge array to be `1`, if it was originally greater than `0`, +/// or `0`, if it was originally less than or equal to `0`. +/// See Also: edges(), EDGES_NONE, EDGES_ALL function _normalize_edges(v) = [for (ax=v) [for (edge=ax) edge>0? 1 : 0]]; diff --git a/paths.scad b/paths.scad index f3fa9a0..53f78fb 100644 --- a/paths.scad +++ b/paths.scad @@ -1021,7 +1021,11 @@ function _path_cuts_dir(path, cuts, closed=false, eps=1e-2) = function path_cut(path,cutdist,closed) = is_num(cutdist) ? path_cut(path,[cutdist],closed) : assert(is_vector(cutdist)) - assert(last(cutdist)0, "Cut distances must be strictly positive") let( cutlist = path_cut_points(path,cutdist,closed=closed),