From b0f1ae52d55056c50687220070c93e24bdeb6e90 Mon Sep 17 00:00:00 2001 From: Andreas Vetter Date: Sat, 2 Sep 2023 20:51:00 +0200 Subject: [PATCH] =?UTF-8?q?Bohrloch=20hinzugef=C3=BCgt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 3d-model.scad | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/3d-model.scad b/3d-model.scad index 344850e..d58cff2 100644 --- a/3d-model.scad +++ b/3d-model.scad @@ -1,14 +1,18 @@ // Alle Längen in Millimeter! +d_0 = 10.0; // Durchmesser Knopf unten +d_1 = 9.65; // Durchmesser Knopf oben h_0 = 6.0; // Höhe, Hauptteil h_1 = 11.0; // Höhe, vorne b_0 = 4.8; // unten, am Zylinderansatz b_1 = 3.8; // unten, vorne b_2 = 4.0*(h_0/h_1); // oben, am Zylinderansatz b_3 = 3.0*(h_0/h_1); // oben (mittlere Höhe), vorne -l_0 = 32; // Länge, unten +l_0 = 32.0; // Länge, unten l_1 = 31.5; // Länge, oben -l_2 = 13; // Länge der Fahne +l_2 = 13.0; // Länge der Fahne +t_b = 5.0; // Tiefe des Bohrlochs +d_b = 4.0; // Durchmesser des Bohrlochs CubePoints = [ [-b_0/2,0,0], // 0 @@ -44,18 +48,22 @@ CubeFaces = [ difference() { - union() + difference() { - cylinder(h=6, r1=10/2, r2=9.65/2); - polyhedron(points=CubePoints, faces=CubeFaces); - }; - union() - { - translate([-b_0/2,l_1-l_2-(h_1-h_0),h_1]) - rotate([90,0,90]) - cylinder(h=b_0, r1=h_1-h_0, r2=h_1-h_0); + union() + { + cylinder(h=h_0, r1=d_0/2, r2=d_1/2); + polyhedron(points=CubePoints, faces=CubeFaces); + }; + union() + { + translate([-b_0/2,l_1-l_2-(h_1-h_0),h_1]) + rotate([90,0,90]) + cylinder(h=b_0, r1=h_1-h_0, r2=h_1-h_0); - translate([-b_0/2, 0, h_0]) - cube([b_0, l_1-l_2-(h_1-h_0), h_1-h_0]); + translate([-b_0/2, 0, h_0]) + cube([b_0, l_1-l_2-(h_1-h_0), h_1-h_0]); + } } -} + cylinder(h=t_b, r1=d_b/2, r2=d_b/2); +} \ No newline at end of file