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
@@ -67,4 +67,6 @@ module the_extruder(
min_xy_shell = 2*extrusion_width,
+ body_label = "another", body_label_thickness = 2*layer_height,
+
what="lever", // lever|body|knob|springpad|*
left=false,
@@ -72,5 +74,4 @@ module the_extruder(
bridges = true,
debug = false,
- label = "another"
) {
fnd = 2*PI; fnr = 2*fnd;
@@ -361,7 +362,7 @@ module the_extruder(
// 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])
@@ -370,5 +371,5 @@ module the_extruder(
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