Skip to content

Commit

Permalink
fix(renderings): Avoid too-thin books from rendering inside-out
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Jan 5, 2021
1 parent 7cec966 commit 8f0e595
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions rules/functions.mk
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ define povray ?=
#declare Rand1 = seed(1234);
#declare Rand2 = seed(4123);
#declare Rand3 = seed(2134);
#declare MinThickness = 0.005;
EOF
sleep 1.$${RANDOM} # block parallel execution
while $(PGREP) povray > /dev/null; do sleep 2.$${RANDOM}; done
Expand Down
4 changes: 2 additions & 2 deletions rules/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@ $(BOOKSCENESINC): %.inc: $$(geometryfile) %-pov-$(_front).png %-pov-$(_back).png
#declare CoilWidth = $(COILWIDTH);
#declare CoilColor = $(COILCOLOR);
#declare PaperWeight = $(PAPERWEIGHT);
#declare BookThickness = $${spinemm} / $${pagewmm} / 2;
#declare BookThickness = max($${spinemm} / $${pagewmm} / 2, MinThickness);
#declare HalfThick = BookThickness / 2;
EOF

Expand All @@ -1160,7 +1160,7 @@ $(BOOKSCENES): %-$(_3d).pov: $$(geometryfile) %.inc
#declare DefaultBook = "$(filter %.inc,$^)";
#declare Lights = $(call scale,8,2);
#declare BookAspect = $${pagewmm} / $${pagehmm};
#declare BookThickness = $${spinemm} / $${pagewmm} / 2;
#declare BookThickness = max($${spinemm} / $${pagewmm} / 2, MinThickness);
#declare HalfThick = BookThickness / 2;
#declare toMM = 1 / $${pagehmm};
EOF
Expand Down

0 comments on commit 8f0e595

Please sign in to comment.