commit 62a7ef612a8f811efe636d1c8db2da4b6c2b6ab9 (tree)
parent 2ca08d4f9046da1bf6f22ae11b6a02aa0cc392b9
Author: Motiejus Jakštys <motiejus@uber.com>
Date: Thu, 6 May 2021 07:40:06 +0300
document adjusted size
Diffstat:
2 files changed, 20 insertions(+), 3 deletions(-)
diff --git 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
@@ -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;