]> www.fi.muni.cz Git - things.git/commitdiff
vesak-filip: obe verze v jednom
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Mon, 12 Feb 2024 07:35:08 +0000 (08:35 +0100)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Wed, 6 Mar 2024 20:58:30 +0000 (21:58 +0100)
vesak-filip-aktovka.scad

index 41a96967d7506b6493fcaa6751d1ee31d547bed5..0fa36a077be39531e8ebfcb09ae9cec2d159a4ec 100644 (file)
@@ -3,13 +3,15 @@ include <yenyalib.scad>;
 eps = 0.01;
 infty = 200;
 
+thin_version = 0;
 wall = 8;
 
 inner_w = 82;
 outer_w = inner_w + 2*30;
 inner_w_round_r = 2;
-body_h = 8;
-bottom_w = 35;
+body_h = thin_version ? 8 : 30;
+bottom_w = thin_version ? 35 : 70;
+
 top_w = bottom_w + 3*wall;
 bottom_h = 60;
 
@@ -35,14 +37,14 @@ module top_part() {
        }
 }
 
-hole_d = 20;
+hole_d = thin_version ? 20 : 35;
 hole_l = 1.25*hole_d;
 hole_xoff = 0.2*(bottom_w-hole_d);
 hole_yoff = bottom_h - 0.2*hole_d;
 hole_top_yoff = 7;
-hole_top_l = 30;
-hook_top_rx = 4;
-hook_top_ry = 6;
+hole_top_l = thin_version ? 30 : 20;
+hook_top_rx = thin_version ? 4 : 8;
+hook_top_ry = thin_version ? 6 : 12;
 module bottom_part() {
        difference() {
                hull() {
@@ -90,7 +92,11 @@ module bottom_part() {
 }
 
 module rounding() {
-       Mz() cylinder(r1 = 2, r2 = 0, h = 3, $fn = 8);
+       if (thin_version) {
+               Mz() cylinder(r1 = 2, r2 = 0, h = 3, $fn = 8);
+       } else {
+               Mz() cylinder(r1 = 3, r2 = 0, h = 4.5, $fn = 8);
+       }
 }