summaryrefslogtreecommitdiff
path: root/another.scad
Side-by-side diff
Diffstat (limited to 'another.scad') (more/less context) (show whitespace changes)
-rw-r--r--another.scad1
1 files changed, 1 insertions, 0 deletions
diff --git a/another.scad b/another.scad
index 3c4f27a..1c6d836 100644
--- a/another.scad
+++ b/another.scad
@@ -434,64 +434,65 @@ module the_extruder(
}
}
}//knob module
module knob_label() {
if(knob_label) {
ll = len(knob_label);
lsl = gearbox_d-knob_indent_d;
ts = knob_label_size?knob_label_size:min(lsl/ll,gearbox_d/4);
translate([0,0,body_h+epsilon+knob_h-knob_label_thickness])
linear_extrude(height=knob_label_thickness+epsilon,convexity=64)
mirror([left?0:1,0])
text(text=knob_label,size=ts,halign="center",valign="center",font="Arial Black");
}
}
module debug() {
difference() {
children();
if(debug) {
// spring tensioner debug cutout
translate([-gearbox_d/2,-longwing,ls_z]) rotate([0,-90,0])
translate([0,-lever_thickness/2-1,-gearbox_d])
cube(size=[body_h/2+1,lever_thickness/2+1,gearbox_d+2]);
// lever axis debug cutout
translate([mount_d/2,0,-1])
rotate([0,0,-45])
cube(size=[gearbox_d-mount_d,gearbox_d-mount_d,body_h+knob_h+2]);
// idler debug cutout
translate([0,0,ls_z])
place_idler()
rotate([0,0,-45])
translate([0,0,-lever_thickness/2-epsilon])
cube(size=[lsd*sqrt(2)/2+1,lsd*sqrt(2)/2+1,
lever_thickness+2*epsilon]);
// pushfit debug cutout
place_idler()
translate([-idler_d/2+filament_offset,0,ls_z])
cube(size=[gearbox_d/2,gearbox_d/2+pf_h(pf),body_h-ls_z+knob_h+1]);
}//if debug
}//difference
}
mirrorleft()
debug()
if(what=="lever") color("green",0.7) lever();
else if(what=="body") color("yellow",0.7) body();
else if(what=="body.label") color("brown",0.7) body_label();
else if(what=="knob") color("red",0.7) knob();
+ else if(what=="knob.label") color("brown",0.7) knob_label();
else if(what=="springpad") color("blue",0.7) springpad();
else if(what=="both") {
color("green",0.7) lever();
color("yellow",0.7) body();
color("brown",0.7) body_label();
}else{
color("green",0.7) lever();
color("yellow",0.7) body();
color("brown",0.7) body_label();
color("red",0.7) knob();
color("brown",0.7) knob_label();
color("blue",0.7) springpad();
}
}
the_extruder(what="*",left=false,debug=true);