From d19aafaa5b0def955a82f3952a3dc9e96dbca954 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Sun, 26 Aug 2018 19:25:56 +0000 Subject: don't support configuration without tensioning screw --- diff --git a/another.scad b/another.scad index 9ff7f6a..e6d9ca3 100644 --- a/another.scad +++ b/another.scad @@ -72,7 +72,6 @@ module the_extruder( left=false, vitamins = true, bridges = true, - tensioner = true, debug = false ) { fnd = 2*PI; fnr = 2*fnd; @@ -348,36 +347,26 @@ module the_extruder( cylinder(d=gearbox_d-mount_d,h=ls_h+2,center=true,$fn=fnd*(gearbox_d-mount_d)); }//difference translate - //translate([-mount_d/2,-longwing,filament_elevation]) - if(!tensioner) /* XXX: this seems to be bullshit, but it's so old, that it's historical bullshit */ - translate([mount_d/2,-longwing,filament_elevation]) - rotate([0,-90,0]) difference() { - cylinder(d=spring_d+spring_d_clearance,h=spring_lc+spring_dl,$fn=fnd*(spring_d+spring_d_clearance)); - translate([0,0,spring_lc+spring_dl]) sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4); - } - // spring tensioner translate([-gearbox_d/2,-longwing,ls_z]) rotate([0,-90,0]) { - if(!tensioner) finger_indent(d=lever_thickness-1,r=15); else { - mirror([0,0,1]) { - translate([0,0,st_thickshell]) - hull() for(o=[0,spring_d]) translate([0,-o,0]) - rotate([0,0,30]) - cylinder(d=st_nut_d+st_nut_d_tolerance,h=st_nut_h+st_nut_h_tolerance,$fn=6); - translate([0,0,-1]) cylinder(d=st_screw_d+st_screw_d_tolerance,h=fsw+2,$fn=fnd*(st_screw_d+st_screw_d_tolerance)); - bigd = spring_d+spring_d_clearance; - hf = (bigd-st_screw_d-st_screw_d_tolerance)/2; - translate([0,0,st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell-epsilon]) { - cylinder(d1=st_screw_d+st_screw_d_tolerance,d2=bigd, - h=hf+epsilon, $fn=fnd*bigd); - translate([0,-(st_thinshell+st_split_w_tolerance)/2,0]) - cube(size=[body_h-ls_z+1,st_thinshell+st_split_w_tolerance,fsw+1]); - } - translate([0,0,st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell+hf-epsilon]) - cylinder(d=bigd,h=fsw+1,$fn=fnd*bigd); - } - } - } + mirror([0,0,1]) { + translate([0,0,st_thickshell]) + hull() for(o=[0,spring_d]) translate([0,-o,0]) + rotate([0,0,30]) + cylinder(d=st_nut_d+st_nut_d_tolerance,h=st_nut_h+st_nut_h_tolerance,$fn=6); + translate([0,0,-1]) cylinder(d=st_screw_d+st_screw_d_tolerance,h=fsw+2,$fn=fnd*(st_screw_d+st_screw_d_tolerance)); + bigd = spring_d+spring_d_clearance; + hf = (bigd-st_screw_d-st_screw_d_tolerance)/2; + translate([0,0,st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell-epsilon]) { + cylinder(d1=st_screw_d+st_screw_d_tolerance,d2=bigd, + h=hf+epsilon, $fn=fnd*bigd); + translate([0,-(st_thinshell+st_split_w_tolerance)/2,0]) + cube(size=[body_h-ls_z+1,st_thinshell+st_split_w_tolerance,fsw+1]); + }//translate + translate([0,0,st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell+hf-epsilon]) + cylinder(d=bigd,h=fsw+1,$fn=fnd*bigd); + }//mirror + }//translate }//difference @@ -442,7 +431,7 @@ module the_extruder( children(); if(debug) { // spring tensioner debug cutout - if(tensioner) // TODO: collapse copypasted transformations + // TODO: collapse copypasted transformations translate([-gearbox_d/2,0,0]) translate([0,-longwing,ls_z]) rotate([0,-90,0]) translate([0,-lever_thickness/2-1,-gearbox_d]) -- cgit v0.9.0.2