From 09dea6db5671e4c91e8e330de282908716073909 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Wed, 19 May 2021 22:57:47 +0300 Subject: [PATCH] explain gentle inflection at the end of the bend --- Makefile | 3 ++- layer2img.py | 3 +-- mj-msc.tex | 23 +++++++++++++++++++++++ 3 files changed, 26 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index bfb6c1e..628a22a 100644 --- a/Makefile +++ b/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/layer2img.py b/layer2img.py index 9a7be48..da8908d 100644 --- a/layer2img.py +++ b/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/mj-msc.tex b/mj-msc.tex index d26083d..720c979 100644 --- a/mj-msc.tex +++ b/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}