Corrected processing of $fn for round_corners, added two examples

to skin (from list comp demos) and added another error check to zip.
This commit is contained in:
Adrian Mariano
2019-11-13 18:17:30 -05:00
parent 78197e1909
commit c0d18ab0b1
3 changed files with 34 additions and 8 deletions

View File

@@ -327,6 +327,7 @@ function _bezcorner(points, parm) =
function _circlecorner(points, parm) =
let(
angle = vector_angle(points)/2,
df=echo(angle=angle),
d = parm[0],
r = parm[1],
prev = normalize(points[0]-points[1]),
@@ -335,7 +336,7 @@ function _circlecorner(points, parm) =
start = points[1]+prev*d,
end = points[1]+next*d
)
arc(segs(norm(start-center)), cp=center, points=[start,end]);
arc(max(3,angle/180*segs(norm(start-center))), cp=center, points=[start,end]);
// Module: offset_sweep()