Cleanup of path_resample, add tests for round_corners, fix

bezier_curve and arc to always return n points for either endpoint
setting.
This commit is contained in:
Adrian Mariano
2021-04-02 16:59:29 -04:00
parent 36fed2c670
commit dd13967049
5 changed files with 30 additions and 22 deletions

View File

@@ -346,7 +346,7 @@ function _bezcorner(points, parm) =
] : _smooth_bez_fill(points,parm),
N = max(3,$fn>0 ?$fn : ceil(bezier_segment_length(P)/$fs))
)
bezier_curve(P,N,endpoint=true);
bezier_curve(P,N+1,endpoint=true);
function _chamfcorner(points, parm) =
let(