From d68ea276786bf017d6b27983a43e987ffcf67115 Mon Sep 17 00:00:00 2001 From: "Jan \"Yenya\" Kasprzak" Date: Mon, 24 Jun 2019 14:43:59 +0200 Subject: [PATCH] Key buttons for Toyota Yaris --- yaris-key-buttons.scad | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 yaris-key-buttons.scad diff --git a/yaris-key-buttons.scad b/yaris-key-buttons.scad new file mode 100644 index 0000000..a523009 --- /dev/null +++ b/yaris-key-buttons.scad @@ -0,0 +1,25 @@ +eps = 0.01; +infty = 100; + +wall = 0.8; +bottom_h = 0.5; +upper_h = 4.5; // mozna snizit tak o 2 mm, ale to by v jednom tl. byla dira + +module button(x, y, h) { + difference() { + union() { + translate([-x/2-wall, -y/2 - wall, 0]) + cube([x+2*wall, y+2*wall, bottom_h]); + translate([-x/2, -y/2, 0]) + cube([x, y, upper_h + bottom_h]); + } + if (h > 0) + translate([-x/2+wall, -y/2+wall, -eps]) + cube([x-2*wall, y-2*wall, h+eps]); + } +} + + +button(7.7, 9.7, 3); + +translate([10, 0, 0]) button(7.3, 7.8, 0); -- 2.43.0