-rw-r--r-- | another.scad | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/another.scad b/another.scad index f01e765..3955e49 100644 --- a/another.scad +++ b/another.scad | |||
@@ -362,6 +362,13 @@ module the_extruder( | |||
362 | 362 | ||
363 | // label | 363 | // label |
364 | if(body_label) let(label=body_label,label_thickness=body_label_thickness) { | 364 | body_label(); |
365 | label_thickness = 2*layer_height; | 365 | |
366 | }//difference | ||
367 | |||
368 | }//body module | ||
369 | module body_label() { | ||
370 | if(body_label) { | ||
371 | label=body_label; | ||
372 | label_thickness=body_label_thickness; | ||
366 | label_len = len(label); | 373 | label_len = len(label); |
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]; | 374 | 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]; |
@@ -372,8 +379,5 @@ module the_extruder( | |||
372 | text(text=label,size=labelspace.x/label_len,halign="center",valign="center",font="Arial Black"); | 379 | text(text=label,size=labelspace.x/label_len,halign="center",valign="center",font="Arial Black"); |
373 | }//if(body_label) | 380 | }//if(body_label) |
374 | 381 | } | |
375 | }//difference | ||
376 | |||
377 | }//body module | ||
378 | 382 | ||
379 | module springpad() { | 383 | module springpad() { |
@@ -462,4 +466,5 @@ module the_extruder( | |||
462 | if(what=="lever") color("green",0.7) lever(); | 466 | if(what=="lever") color("green",0.7) lever(); |
463 | else if(what=="body") color("yellow",0.7) body(); | 467 | else if(what=="body") color("yellow",0.7) body(); |
468 | else if(what=="body.label") color("brown",0.7) body_label(); | ||
464 | else if(what=="knob") color("red",0.7) knob(); | 469 | else if(what=="knob") color("red",0.7) knob(); |
465 | else if(what=="springpad") color("blue",0.7) springpad(); | 470 | else if(what=="springpad") color("blue",0.7) springpad(); |
@@ -467,4 +472,5 @@ module the_extruder( | |||
467 | color("green",0.7) lever(); | 472 | color("green",0.7) lever(); |
468 | color("yellow",0.7) body(); | 473 | color("yellow",0.7) body(); |
474 | color("brown",0.7) body_label(); | ||
469 | }else{ | 475 | }else{ |
470 | color("green",0.7) lever(); | 476 | color("green",0.7) lever(); |