Sort all resulting STLs after render.

This commit is contained in:
Matt McWilliams 2023-04-15 10:54:54 -04:00
parent 6b24209ca4
commit 109a6cb729
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,7 @@ PREFIX=takeup
OPENSCAD=openscad
OPENSCAD_OPTIONS=-D VERBOSE=false
OPENSCAD_IMAGE_OPTIONS=--imgsize=1024,1024 --colorscheme=DeepOcean --render
C14N=python common/c14n_stl.py
STL=./stl
IMG=./img
@ -52,4 +53,5 @@ cleanall:
$(MODELS) : $(STL)/$(PREFIX)_%.stl : $(PREFIX).scad
$(OPENSCAD) $(OPENSCAD_OPTIONS) -o $@ -D PART=\"$(subst $(PREFIX)_,,$(subst .stl,,$(@F)))\" $<
$(C14N) $@
$(OPENSCAD) $(OPENSCAD_OPTIONS) $(OPENSCAD_IMAGE_OPTIONS) -o $(IMG)/$(subst $(STL),$(IMG)},$(subst .stl,.png,$(@F))) -D PART=\"$(subst $(PREFIX)_,,$(subst .stl,,$(@F)))\" $<