Sort all resulting STLs after render.
This commit is contained in:
parent
6b24209ca4
commit
109a6cb729
2
Makefile
2
Makefile
|
@ -27,6 +27,7 @@ PREFIX=takeup
|
||||||
OPENSCAD=openscad
|
OPENSCAD=openscad
|
||||||
OPENSCAD_OPTIONS=-D VERBOSE=false
|
OPENSCAD_OPTIONS=-D VERBOSE=false
|
||||||
OPENSCAD_IMAGE_OPTIONS=--imgsize=1024,1024 --colorscheme=DeepOcean --render
|
OPENSCAD_IMAGE_OPTIONS=--imgsize=1024,1024 --colorscheme=DeepOcean --render
|
||||||
|
C14N=python common/c14n_stl.py
|
||||||
|
|
||||||
STL=./stl
|
STL=./stl
|
||||||
IMG=./img
|
IMG=./img
|
||||||
|
@ -52,4 +53,5 @@ cleanall:
|
||||||
|
|
||||||
$(MODELS) : $(STL)/$(PREFIX)_%.stl : $(PREFIX).scad
|
$(MODELS) : $(STL)/$(PREFIX)_%.stl : $(PREFIX).scad
|
||||||
$(OPENSCAD) $(OPENSCAD_OPTIONS) -o $@ -D PART=\"$(subst $(PREFIX)_,,$(subst .stl,,$(@F)))\" $<
|
$(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)))\" $<
|
$(OPENSCAD) $(OPENSCAD_OPTIONS) $(OPENSCAD_IMAGE_OPTIONS) -o $(IMG)/$(subst $(STL),$(IMG)},$(subst .stl,.png,$(@F))) -D PART=\"$(subst $(PREFIX)_,,$(subst .stl,,$(@F)))\" $<
|
||||||
|
|
Loading…
Reference in New Issue