screws doc fix, small rounding bugfix

This commit is contained in:
Adrian Mariano
2022-05-27 01:26:04 -04:00
parent 458acdf803
commit a6d38a1e79
2 changed files with 145 additions and 122 deletions

View File

@@ -675,10 +675,10 @@ module smooth_path(path, tangents, size, relsize, splinesteps=10, uniform=false,
function smooth_path(path, tangents, size, relsize, splinesteps=10, uniform=false, closed) =
is_1region(path) ? smooth_path(path[0], tangents, size, relsize, splinesteps, uniform, default(closed,true)) :
let (
bez = path_to_bezpath(path, tangents=tangents, size=size, relsize=relsize, uniform=uniform, closed=default(closed,false))
bez = path_to_bezpath(path, tangents=tangents, size=size, relsize=relsize, uniform=uniform, closed=default(closed,false)),
smoothed = bezpath_curve(bez,splinesteps=splinesteps)
)
bezpath_curve(bez,splinesteps=splinesteps);
closed ? cleanup_path(smoothed) : smoothed;
function _scalar_to_vector(value,length,varname) =