diff --git a/IV/Makefile b/IV/Makefile index bfb6c1e..628a22a 100644 --- a/IV/Makefile +++ b/IV/Makefile @@ -5,6 +5,7 @@ SLIDES = slides-2021-03-29.pdf NON_ARCHIVABLES = notes.txt referatui.txt slides-2021-03-29.txt ARCHIVABLES = $(filter-out $(NON_ARCHIVABLES),$(shell git ls-files .)) +FIGURES = fig8-definition-of-a-bend.pdf .PHONY: test test: .faux_test @@ -31,7 +32,7 @@ clean-tables: .PHONY: slides slides: $(SLIDES) -mj-msc.pdf: mj-msc.tex test-figures.pdf version.tex bib.bib +mj-msc.pdf: mj-msc.tex test-figures.pdf version.tex bib.bib $(FIGURES) latexmk -shell-escape -g -pdf $< mj-msc-full.pdf: mj-msc.pdf version.tex $(ARCHIVABLES) diff --git a/IV/layer2img.py b/IV/layer2img.py index 9a7be48..da8908d 100644 --- a/IV/layer2img.py +++ b/IV/layer2img.py @@ -76,9 +76,8 @@ def main(): ax.axis('off') ax.margins(0, 0) - fig.tight_layout(0) if args.outfile: - fig.savefig(args.outfile, bbox_inches=0, dpi=600) + fig.savefig(args.outfile, bbox_inches='tight', dpi=600) else: plt.show() diff --git a/IV/mj-msc.tex b/IV/mj-msc.tex index d26083d..720c979 100644 --- a/IV/mj-msc.tex +++ b/IV/mj-msc.tex @@ -212,9 +212,32 @@ unexpected bugs have snug in while modifying the algorithm. \chapter{Description of the implementation} +Like alluded in section~\ref{sec:introduction}, \cite{wang1998line} paper skims +over certain details, which are important to implement the algorithm. This +section goes through each algorithm stage, illustrating the intermediate steps +and explaining the author's desiderata for a detailed description. + +Step illustrations of the following sections are extracted from the automated +test cases. + \section{Definition of a Bend} +\begin{figure}[H] + \centering + \includegraphics[width=\linewidth]{fig8-definition-of-a-bend} + \caption{Originally figure 8: detected bends are highlighted} + \label{fig:fig8-definition-of-a-bend} +\end{figure} +End vertices of all lines should also be part of the bend. That way, all +vertices belong to 1 or 2 bends. This characteristic is not obvious when +reading the introductory sections, but becomes unavoidable (there could be no +other way) when reading the following sections in detail. + +Last vertex of each bend (except for the two end-line vertices) is also the +first vertex of the next bend. This is apparent when looking at the +illustration of the detected bends. However, the original {\WM} paper did not +have such an explanation or illustration. \section{Gentle Inflection at End of a Bend}