summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--another.scad11
1 files changed, 6 insertions, 5 deletions
diff --git a/another.scad b/another.scad
index fcd179e..f01e765 100644
--- a/another.scad
+++ b/another.scad
@@ -63,18 +63,19 @@ module the_extruder(
st_screw_d_tolerance=.5,
st_split_w_tolerance = .3,
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 = 2*layer_height,
+
what="lever", // lever|body|knob|springpad|*
left=false,
vitamins = true,
bridges = true,
debug = false,
- label = "another"
) {
fnd = 2*PI; fnr = 2*fnd;
function lu(m,k) = m[search([k],m)[0]][1];
pulley_d = lu(pulley,"d");
pulley_h = lu(pulley,"h");
@@ -357,22 +358,22 @@ module the_extruder(
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
// label
- label_thickness = 2*layer_height;
- label_len = len(label);
- if(label_len) {
+ if(body_label) let(label=body_label,label_thickness=body_label_thickness) {
+ label_thickness = 2*layer_height;
+ label_len = len(label);
labelspace = [gearbox_d/2-mount_screwhead_d/2-min_xy_shell,longwing-(mount_screwhead_d-st_split_w-st_split_w_tolerance)/2-2*min_xy_shell];
translate([0,0,body_h-label_thickness])
linear_extrude(height=label_thickness+epsilon,convexity=64)
translate([-mount_screwhead_d/2-min_xy_shell-labelspace.x/2,-longwing+(st_split_w+st_split_w_tolerance)/2+min_xy_shell+labelspace.y/2])
mirror([left?0:1,0])
text(text=label,size=labelspace.x/label_len,halign="center",valign="center",font="Arial Black");
- }//if(label_len)
+ }//if(body_label)
}//difference
}//body module
module springpad() {