summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--Makefile4
-rw-r--r--another.scad18
2 files changed, 15 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 1532827..6393033 100644
--- a/Makefile
+++ b/Makefile
@@ -16,3 +16,3 @@ clean:
stl-another-%:
- $(MAKE) another-$*-{body,lever,knob,springpad}.stl
+ $(MAKE) another-$*-{body,body-label,lever,knob,springpad}.stl
@@ -20,2 +20,4 @@ another-%-body.stl: another-%.scad another.scad
$(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="body"' -o "$@" "$<"
+another-%-body-label.stl: another-%.scad another.scad
+ $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="body.label"' -o "$@" "$<"
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(
// label
- if(body_label) let(label=body_label,label_thickness=body_label_thickness) {
- label_thickness = 2*layer_height;
+ body_label();
+
+ }//difference
+
+ }//body module
+ module body_label() {
+ if(body_label) {
+ label=body_label;
+ label_thickness=body_label_thickness;
label_len = len(label);
@@ -373,6 +380,3 @@ module the_extruder(
}//if(body_label)
-
- }//difference
-
- }//body module
+ }
@@ -463,2 +467,3 @@ module the_extruder(
else if(what=="body") color("yellow",0.7) body();
+ else if(what=="body.label") color("brown",0.7) body_label();
else if(what=="knob") color("red",0.7) knob();
@@ -468,2 +473,3 @@ module the_extruder(
color("yellow",0.7) body();
+ color("brown",0.7) body_label();
}else{