-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | another.scad | 18 |
2 files changed, 15 insertions, 7 deletions
@@ -16,3 +16,3 @@ clean: | |||
16 | stl-another-%: | 16 | stl-another-%: |
17 | $(MAKE) another-$*-{body,lever,knob,springpad}.stl | 17 | $(MAKE) another-$*-{body,body-label,lever,knob,springpad}.stl |
18 | 18 | ||
@@ -20,2 +20,4 @@ another-%-body.stl: another-%.scad another.scad | |||
20 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="body"' -o "$@" "$<" | 20 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="body"' -o "$@" "$<" |
21 | another-%-body-label.stl: another-%.scad another.scad | ||
22 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="body.label"' -o "$@" "$<" | ||
21 | another-%-lever.stl: another-%.scad another.scad | 23 | another-%-lever.stl: another-%.scad another.scad |
diff --git a/another.scad b/another.scad index f01e765..3955e49 100644 --- a/another.scad +++ b/another.scad | |||
@@ -363,4 +363,11 @@ module the_extruder( | |||
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); |
@@ -373,6 +380,3 @@ module the_extruder( | |||
373 | }//if(body_label) | 380 | }//if(body_label) |
374 | 381 | } | |
375 | }//difference | ||
376 | |||
377 | }//body module | ||
378 | 382 | ||
@@ -463,2 +467,3 @@ module the_extruder( | |||
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(); |
@@ -468,2 +473,3 @@ module the_extruder( | |||
468 | color("yellow",0.7) body(); | 473 | color("yellow",0.7) body(); |
474 | color("brown",0.7) body_label(); | ||
469 | }else{ | 475 | }else{ |