Fixes for various example bugs.

This commit is contained in:
Garth Minette
2021-03-16 14:46:11 -07:00
parent 70752b6861
commit 17efb079d9
5 changed files with 6 additions and 5 deletions

View File

@@ -168,6 +168,7 @@ module stroke(
assert(is_num(width) || (is_vector(width) && len(width)==len(path)));
width = is_num(width)? [for (x=path) width] : width;
assert(all([for (w=width) w>0]));
endcap1 = first_defined([endcap1, endcaps, if(!closed) plots, "round"]);
endcap2 = first_defined([endcap2, endcaps, plots, "round"]);