]> www.fi.muni.cz Git - things.git/commitdiff
inhalator-clip.scad
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Thu, 8 Oct 2020 15:01:32 +0000 (17:01 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Thu, 8 Oct 2020 15:01:32 +0000 (17:01 +0200)
inhalator-clip.scad [new file with mode: 0644]

diff --git a/inhalator-clip.scad b/inhalator-clip.scad
new file mode 100644 (file)
index 0000000..52f99ff
--- /dev/null
@@ -0,0 +1,19 @@
+infty = 100;
+eps = 0.01;
+
+base_l = 16;
+base_h = 2;
+rib_h = 2;
+rib_w = 1.5;
+rib_space = 1.9;
+ribs = 5;
+
+// base
+base_w = ribs*rib_w + (ribs-1)*rib_space;
+translate([-base_w/2, -base_l/2, 0])
+       cube([base_w, base_l, base_h]);
+
+for (x = [0:ribs-1])
+       translate([-base_w/2 + x*(rib_w+rib_space), -base_l/2, base_h-eps])
+               cube([rib_w, base_l, rib_h + eps]);
+