summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--another.scad7
1 files changed, 4 insertions, 3 deletions
diff --git a/another.scad b/another.scad
index fcd179e..f01e765 100644
--- a/another.scad
+++ b/another.scad
@@ -66,12 +66,13 @@ module the_extruder(
66 min_z_shell = 4*layer_height, // the very minimal shell thickness along z-axis. 66 min_z_shell = 4*layer_height, // the very minimal shell thickness along z-axis.
67 min_xy_shell = 2*extrusion_width, 67 min_xy_shell = 2*extrusion_width,
68 68
69 body_label = "another", body_label_thickness = 2*layer_height,
70
69 what="lever", // lever|body|knob|springpad|* 71 what="lever", // lever|body|knob|springpad|*
70 left=false, 72 left=false,
71 vitamins = true, 73 vitamins = true,
72 bridges = true, 74 bridges = true,
73 debug = false, 75 debug = false,
74 label = "another"
75) { 76) {
76 fnd = 2*PI; fnr = 2*fnd; 77 fnd = 2*PI; fnr = 2*fnd;
77 function lu(m,k) = m[search([k],m)[0]][1]; 78 function lu(m,k) = m[search([k],m)[0]][1];
@@ -360,16 +361,16 @@ module the_extruder(
360 }//translate 361 }//translate
361 362
362 // label 363 // label
364 if(body_label) let(label=body_label,label_thickness=body_label_thickness) {
363 label_thickness = 2*layer_height; 365 label_thickness = 2*layer_height;
364 label_len = len(label); 366 label_len = len(label);
365 if(label_len) {
366 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]; 367 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];
367 translate([0,0,body_h-label_thickness]) 368 translate([0,0,body_h-label_thickness])
368 linear_extrude(height=label_thickness+epsilon,convexity=64) 369 linear_extrude(height=label_thickness+epsilon,convexity=64)
369 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]) 370 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])
370 mirror([left?0:1,0]) 371 mirror([left?0:1,0])
371 text(text=label,size=labelspace.x/label_len,halign="center",valign="center",font="Arial Black"); 372 text(text=label,size=labelspace.x/label_len,halign="center",valign="center",font="Arial Black");
372 }//if(label_len) 373 }//if(body_label)
373 374
374 }//difference 375 }//difference
375 376