]> www.fi.muni.cz Git - things.git/commitdiff
nerf.scad: thicker border
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Thu, 29 Nov 2018 13:44:17 +0000 (14:44 +0100)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Thu, 29 Nov 2018 13:44:17 +0000 (14:44 +0100)
nerf.scad

index 9bdddb7ba4fbaa14217a5fef1f9734cbbfe99623..33acd587ee38b01a9ccfe7111c74f5df2697e333 100644 (file)
--- a/nerf.scad
+++ b/nerf.scad
@@ -2,12 +2,13 @@ eps = 0.01;
 infty = 100;
 
 wall = 1;
 infty = 100;
 
 wall = 1;
+cyl_wall = 1.5;
 
 
-lens_d = 41.5;
+lens_d = 41.5 - 1.5;
 lens_side_l = 25;
 rail_in = 13.5;
 lens_side_l = 25;
 rail_in = 13.5;
-rail_ex = 18.2;
-rail_thick = 3.4;
+rail_ex = 18.6;
+rail_thick = 3.6;
 rail_depth = rail_thick + wall;
 body_l = 55;
 rail_in_l = 15;
 rail_depth = rail_thick + wall;
 body_l = 55;
 rail_in_l = 15;
@@ -22,7 +23,7 @@ difference() {
                difference() {
                        union() {
                                // outer cylinder
                difference() {
                        union() {
                                // outer cylinder
-                               cylinder(r = lens_d/2 + 2*wall, h = body_l);
+                               cylinder(r = lens_d/2 + 2*cyl_wall, h = body_l);
                                // rail base
                                translate([-rail_ex/2-wall, -lens_d/2-rail_depth-2*wall, 0])
                                        cube([rail_ex+2*wall, lens_d/2+rail_depth+2*wall, body_l]);
                                // rail base
                                translate([-rail_ex/2-wall, -lens_d/2-rail_depth-2*wall, 0])
                                        cube([rail_ex+2*wall, lens_d/2+rail_depth+2*wall, body_l]);
@@ -50,8 +51,8 @@ difference() {
                }
                // inside supports
                for (angle = [-27, 27, 120, 240]) rotate([0, 0, angle])
                }
                // inside supports
                for (angle = [-27, 27, 120, 240]) rotate([0, 0, angle])
-                       translate([0, -lens_d/2-wall, -2*eps])
-                               cylinder(r = wall, h = body_l + 4*eps);
+                       translate([0, -lens_d/2-cyl_wall, -2*eps])
+                               cylinder(r = cyl_wall, h = body_l + 4*eps);
        }
        // slanted cylinder cut
        translate([-infty/2, cos(60)*lens_d/2, body_l+lens_side_l])
        }
        // slanted cylinder cut
        translate([-infty/2, cos(60)*lens_d/2, body_l+lens_side_l])