Use round poly in poly gates

This commit is contained in:
Quinn
2022-01-09 15:53:50 -08:00
parent bfd9286a51
commit 7d8e4617c8
4 changed files with 40 additions and 67 deletions
+2
View File
@@ -3,3 +3,5 @@ function normalize(vec) = vec / norm(vec);
function lerp(a,b,t) = a + (b - a) * t;
function scale_xy(shape, xy, allow_zero = false) = let(s = allow_zero ? xy : sign(xy == 0 ? 1 : xy) * max(abs(xy), 0.0001)) [ for (i = shape) [i.x * s, i.y * s]];
function add_z(z, m) = [ for (i = m) concat(i, z) ];