added the smallest unit value to the ploygon in order to ensure they overlap and union correctly

This commit is contained in:
2026-02-25 21:59:26 +13:00
parent 04e1ad0d0a
commit 8ae175e08c

View File

@@ -1,6 +1,14 @@
// creates 1 side of the idt
module delay_line(lambda = 1, n_fingers = 1, finger_length = 50, gap = 0, thickness = 0) {
// code
module delay_line(
lambda = 1,
n_fingers = 1,
finger_length = 50,
gap = 0,
thickness = 0
) {
// just a very small value that allows the polygons to overlap nicely
esp = $fs;
l45 =lambda*5/4;
l2 = lambda/2;
l4 = lambda/4;
@@ -24,8 +32,8 @@ module delay_line(lambda = 1, n_fingers = 1, finger_length = 50, gap = 0, thickn
[b+f, l2],
[b+f, l2+l4],
[b, l2+l4],
[b, l4*5-l4],
[0, l4*5-l4]
[b, l4*5-l4 + esp],
[0, l4*5-l4 + esp]
];
union () {