From 62a7ef612a8f811efe636d1c8db2da4b6c2b6ab9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Thu, 6 May 2021 07:40:06 +0300 Subject: [PATCH] document adjusted size --- IV/mj-msc.tex | 19 ++++++++++++++++++- IV/wm.sql | 4 ++-- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/IV/mj-msc.tex b/IV/mj-msc.tex index f551740..3c8732d 100644 --- a/IV/mj-msc.tex +++ b/IV/mj-msc.tex @@ -587,6 +587,20 @@ table~\ref{table:scale-halfcirlce-diameter}. \label{table:scale-halfcirlce-diameter} \end{table} +Sometimes, when working with {\WM}, it is useful to convert between +half-circle's diameter and adjusted size. These easily derive from circle's +area formula $A = 2\pi r^2$. Diameter: + +\[ + D = 2\sqrt{2 adjsize / \pi} +\] + +In reverse, half-circle's area from it's diameter (adjusted size): + +\[ + adjsize = \frac{\pi D^2}{8} +\] + \subsection{Definition of a Bend} \label{sec:definition-of-a-bend} @@ -806,7 +820,10 @@ This section introduces \textsc{adjusted size}, which trivially derives from \] Adjusted size becomes necessary later to compare bends with each other, and -find out similar ones. +decide if the bend is within the simplification threshold. + +Sometimes it is useful to convert adjusted size to half-circle's diameter $D$, +which comes as a parameter to the {\WM} algorithm: \subsection{Isolated Bend} diff --git a/IV/wm.sql b/IV/wm.sql index c5e93be..871d697 100644 --- a/IV/wm.sql +++ b/IV/wm.sql @@ -716,8 +716,8 @@ begin -- is not implemented. perform wm_isolated_bends(bendattrs, dbgname, gen); - select * from wm_exaggeration( - bendattrs, dhalfcircle, dbgname, gen) into bendattrs, mutated; + --select * from wm_exaggeration( + -- bendattrs, dhalfcircle, dbgname, gen) into bendattrs, mutated; select * from wm_elimination( bendattrs, dhalfcircle, dbgname, gen) into bendattrs, mutated;