From cd927d0605caa6c8fa87432bdb5801770f7e03a2 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Fri, 31 Aug 2018 22:59:24 +0000 Subject: knob label as a separate stl --- diff --git a/Makefile b/Makefile index 6393033..5753a68 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ clean: rm -f *.stl *.gcode stl-another-%: - $(MAKE) another-$*-{body,body-label,lever,knob,springpad}.stl + $(MAKE) another-$*-{body,body-label,lever,knob,knob-label,springpad}.stl another-%-body.stl: another-%.scad another.scad $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="body"' -o "$@" "$<" @@ -24,6 +24,8 @@ another-%-lever.stl: another-%.scad another.scad $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="lever"' -o "$@" "$<" another-%-knob.stl: another-%.scad another.scad $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="knob"' -o "$@" "$<" +another-%-knob-label.stl: another-%.scad another.scad + $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="knob.label"' -o "$@" "$<" another-%-springpad.stl: another-%.scad another.scad $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="springpad"' -o "$@" "$<" diff --git a/another.scad b/another.scad index 3c4f27a..1c6d836 100644 --- a/another.scad +++ b/another.scad @@ -479,6 +479,7 @@ 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(); + else if(what=="knob.label") color("brown",0.7) knob_label(); else if(what=="springpad") color("blue",0.7) springpad(); else if(what=="both") { color("green",0.7) lever(); -- cgit v0.9.0.2