summaryrefslogtreecommitdiff
path: root/another.scad
Side-by-side diff
Diffstat (limited to 'another.scad') (more/less context) (ignore whitespace changes)
-rw-r--r--another.scad14
1 files changed, 14 insertions, 0 deletions
diff --git a/another.scad b/another.scad
index 05bfab3..49833ec 100644
--- a/another.scad
+++ b/another.scad
@@ -66,8 +66,9 @@ module the_extruder(
min_z_shell = 4*layer_height, // the very minimal shell thickness along z-axis.
min_xy_shell = 2*extrusion_width,
body_label = "another", body_label_thickness = layer_height,
+ knob_label = "another", knob_label_thickness = 2*layer_height, knob_label_size=undef,
what="lever", // lever|body|knob|springpad|*
left=false,
vitamins = true,
@@ -428,11 +429,23 @@ module the_extruder(
}
for(a=[0:360/knob_indents:359]) rotate([0,0,a])
translate([0,gearbox_d/2,-1])
cylinder(d=knob_indent_d,h=knob_h+2,$fn=fnd*knob_indent_d);
+ translate([0,0,-body_h-epsilon]) knob_label();
}
}
}//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();
@@ -474,8 +487,9 @@ module the_extruder(
}else{
color("green",0.7) lever();
color("yellow",0.7) body();
color("red",0.7) knob();
+ color("brown",0.7) knob_label();
color("blue",0.7) springpad();
}
}