Rebuild and canonicalize stls

This commit is contained in:
mmcwilliams 2023-01-16 21:20:44 -05:00
parent ddca31e931
commit 3b6ab71e9b
4 changed files with 25925 additions and 25922 deletions

View File

@ -5,12 +5,14 @@ OPENSCAD=openscad
OPENSCAD_OPTIONS=-D VERBOSE=false OPENSCAD_OPTIONS=-D VERBOSE=false
THEME=DeepOcean THEME=DeepOcean
OPENSCAD_IMAGE=--viewall --render --imgsize=512,512 --colorscheme=$(THEME) OPENSCAD_IMAGE=--viewall --render --imgsize=512,512 --colorscheme=$(THEME)
ORDER_STL=python3 common/c14n_stl.py
all: bolex_rewind_key bolex_rewind_key_handle all: bolex_rewind_key bolex_rewind_key_handle
bolex_rewind_key : $(SRC) bolex_rewind_key : $(SRC)
echo "Generating $@.stl from $(SRC)..." echo "Generating $@.stl from $(SRC)..."
$(OPENSCAD) $(OPENSCAD_OPTIONS) -o $@.stl -D PART=\"$@\" $(SRC) $(OPENSCAD) $(OPENSCAD_OPTIONS) -o $@.stl -D PART=\"$@\" $(SRC)
$(ORDER_STL) $@.stl
$(OPENSCAD) $(OPENSCAD_IMAGE) -o $@.png -D PART=\"$@\" $(SRC) $(OPENSCAD) $(OPENSCAD_IMAGE) -o $@.png -D PART=\"$@\" $(SRC)
$(IM) $@.png $@.jpg $(IM) $@.png $@.jpg
rm $@.png rm $@.png
@ -18,6 +20,7 @@ bolex_rewind_key : $(SRC)
bolex_rewind_key_handle : $(SRC) bolex_rewind_key_handle : $(SRC)
echo "Generating $@.stl from $(SRC)..." echo "Generating $@.stl from $(SRC)..."
$(OPENSCAD) $(OPENSCAD_OPTIONS) -o $@.stl -D PART=\"$@\" $(SRC) $(OPENSCAD) $(OPENSCAD_OPTIONS) -o $@.stl -D PART=\"$@\" $(SRC)
$(ORDER_STL) $@.stl
$(OPENSCAD) $(OPENSCAD_IMAGE) -o $@.png -D PART=\"$@\" $(SRC) $(OPENSCAD) $(OPENSCAD_IMAGE) -o $@.png -D PART=\"$@\" $(SRC)
$(IM) $@.png $@.jpg $(IM) $@.png $@.jpg
rm $@.png rm $@.png

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

2
common

@ -1 +1 @@
Subproject commit 1af94e539de69a3c82b13e5a31174a785faea239 Subproject commit cba7a3051ef0729eaa1d5c5da6205464185734e0