From 94730f0a772dab12295fbf71ba436e9e06efd00a Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Mon, 06 Aug 2018 11:32:37 +0000 Subject: another: conditional bridging patches --- diff --git a/another.scad b/another.scad index 9ed285d..7e7f22d 100644 --- a/another.scad +++ b/another.scad @@ -57,7 +57,7 @@ module the_extruder( what="lever", // lever|body|knob|springpad|* left=false, vitamins = true, - supports = false, + supports = false, bridges = true, tensioner = true, debug = false ) { @@ -178,7 +178,7 @@ module the_extruder( }//rotate-translate }//difference // bridging patch - place_idler() + if(bridges) place_idler() translate([0,0,lever_thickness/2-mount_screwhead_h]) mirror([0,0,1]) cylinder(d=mount_screwhead_d,h=layer_height); @@ -239,10 +239,10 @@ module the_extruder( cylinder(d=protrusion_d+protrusion_tolerance_h,h=protrusion_h+protrusion_tolerance_v+1,$fn=fnd*(protrusion_d+protrusion_tolerance_h)); // mount screw holes for(zr=[0:90:359]) rotate([0,0,zr]) translate([mount_d/2,0,0]) { - translate([0,0,mount_screw_l-mounthole_depth/2-layer_height-1]) + translate([0,0,mount_screw_l-mounthole_depth/2-(bridges?layer_height:-epsilon)]) mirror([0,0,1]) cylinder(d=mount_screw_d+mount_screw_d_tolerance, - h=mount_screw_l-mounthole_depth/2-layer_height+1, + h=mount_screw_l-mounthole_depth/2+1, $fn=fnd*(mount_screw_d+mount_screw_d_tolerance)); translate([0,0,mount_screw_l-mounthole_depth/2]) cylinder(d=mount_screwhead_d,h=body_h+1,$fn=fnd*mount_screwhead_d); -- cgit v0.9.0.2