]> www.fi.muni.cz Git - things.git/commitdiff
rocket: alternative rod holder
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Tue, 4 Jul 2017 14:19:46 +0000 (16:19 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Fri, 7 Jul 2017 10:08:09 +0000 (12:08 +0200)
rocket.scad

index 19d034064790a373451260f9ac1fbe3f1797d701..a48be5ed4b9f6bfc55f88bbe0545f222ced87193 100644 (file)
@@ -33,6 +33,25 @@ fin_thickness = 1.5;
 eps = 0.01;
 infty = 250;
 
 eps = 0.01;
 infty = 250;
 
+// rod holder
+
+module rod_holder() {
+       // rod hole holder
+       hull() {
+               translate([motor_diam/2 + thick_wall + thin_wall + rod_diam/2, 0, 0])
+                       cylinder(r = rod_diam/2 + thin_wall, h = thick_wall);
+               translate([motor_diam/2 + thick_wall - thin_wall - rod_diam/2, 0, 0])
+                               
+                       cylinder(r = rod_diam/2 + thin_wall, h = 3*thick_wall);
+       }
+}
+
+module rod_hole() {
+       // rod hole
+       translate([motor_diam/2 + thick_wall + thin_wall + eps + rod_diam/2, 0, 0])
+               cylinder(r = rod_diam/2, h = infty);
+}
+
 //----------------- MOTOR MODULE -----------------------------
 
 module fin() {
 //----------------- MOTOR MODULE -----------------------------
 
 module fin() {
@@ -98,21 +117,6 @@ module motor_module_solid()
                         fin2();
         };
 
                         fin2();
         };
 
-       // rod hole holder
-       hull() {
-               translate([motor_diam/2 + thick_wall - rod_diam/2 - thin_wall,
-                       0, segment_overlap])
-                       scale([1, 1.4, 1])
-                       cylinder(r = rod_diam/2 + thin_wall, h = eps);
-               translate([motor_diam/2 + thick_wall + thin_wall + rod_diam/2, 0, segment_overlap + rod_hole_side])
-                       scale([1, 1.1, 1])
-                       cylinder(r = rod_diam/2 + thin_wall, h = rod_hole_height);
-               translate([motor_diam/2 + thick_wall - rod_diam/2 - thin_wall,
-                       0, segment_overlap + 2*rod_hole_side + rod_hole_height])
-                       scale([1, 1.4, 1])
-                       cylinder(r = rod_diam/2 + thin_wall, h = eps);
-       };
-
        // motor clip
        for (angle = [120, -120]) rotate([0, 0, angle]) intersection() {
                translate([clip_inner_space, -infty/2,
        // motor clip
        for (angle = [120, -120]) rotate([0, 0, angle]) intersection() {
                translate([clip_inner_space, -infty/2,
@@ -123,6 +127,10 @@ module motor_module_solid()
                rotate([0, 0, -120])
                        translate([-infty/2, 0, 0]) cube(infty);
        };
                rotate([0, 0, -120])
                        translate([-infty/2, 0, 0]) cube(infty);
        };
+
+       translate([0, 0, motor_len + motor_wall])
+               scale([1, 1, -1])
+               rod_holder();
 };
        
 module motor_module() {
 };
        
 module motor_module() {
@@ -151,9 +159,7 @@ module motor_module() {
                                        cylinder(r = 3, h = infty);
                };
 
                                        cylinder(r = 3, h = infty);
                };
 
-               // rod hole
-               translate([motor_diam/2 + thick_wall + thin_wall + eps + rod_diam/2, 0, 0])
-                       cylinder(r = rod_diam/2, h = infty);
+               rod_hole();
        };
 };
 
        };
 };
 
@@ -168,6 +174,7 @@ central_clip_clearance = 2.5;
 
 module central_tube_solid() {
        cylinder(r = motor_diam/2 + thick_wall, h = central_tube_h);
 
 module central_tube_solid() {
        cylinder(r = motor_diam/2 + thick_wall, h = central_tube_h);
+       rod_holder();
 };
 
 module central_tube() {
 };
 
 module central_tube() {
@@ -176,6 +183,7 @@ module central_tube() {
                translate([0, 0, -eps])
                        cylinder(r = motor_diam/2 + thick_wall - thin_wall,
                                h = infty);
                translate([0, 0, -eps])
                        cylinder(r = motor_diam/2 + thick_wall - thin_wall,
                                h = infty);
+               rod_hole();
        };
 };
 
        };
 };