]> www.fi.muni.cz Git - things.git/blobdiff - vesak-filip-aktovka.scad
switch holder.scad
[things.git] / vesak-filip-aktovka.scad
index 9f14eaaed1cb3a9b520e94c4c23b0a9b216a5471..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 = 30;
-bottom_w = 70;
+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 = 35;
+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 = 20;
-hook_top_rx = 8;
-hook_top_ry = 12;
+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,15 +92,20 @@ module bottom_part() {
 }
 
 module rounding() {
-       Mz() cylinder(r1 = 3, r2 = 0, h = 4.5, $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);
+       }
 }
        
 
 $fn = 128;
 top_part();
 
-Mx() Tx(outer_w/2-3) Ty(3)
-       cylinder(r = 15, h = 0.4);
+// pro prichyceni ABS, ale stejne nefunguje
+// Mx() Tx(outer_w/2-3) Ty(3)
+//     cylinder(r = 15, h = 0.4);
 
 round_with() {
        rounding();