\hypertarget{a00844}{\section{Open\+Mesh\+:\+:Decimater\+:\+:Mod\+Aspect\+Ratio\+T$<$ Mesh\+T $>$ Class Template Reference}
\label{a00844}\index{Open\+Mesh\+::\+Decimater\+::\+Mod\+Aspect\+Ratio\+T$<$ Mesh\+T $>$@{Open\+Mesh\+::\+Decimater\+::\+Mod\+Aspect\+Ratio\+T$<$ Mesh\+T $>$}}
}


Use aspect ratio to control decimation.  




{\ttfamily \#include $<$libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Tools/\+Decimater/\+Mod\+Aspect\+Ratio\+T.\+hh$>$}

Inheritance diagram for Open\+Mesh\+:\+:Decimater\+:\+:Mod\+Aspect\+Ratio\+T$<$ Mesh\+T $>$\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a00844}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00844_aae21a220eba88d170977efe7eb691df2}{typedef \hyperlink{a00994_a15372f27edf521d8e9028e2abccae342}{Mesh\+::\+Scalar} {\bfseries Scalar}}\label{a00844_aae21a220eba88d170977efe7eb691df2}

\item 
\hypertarget{a00844_a707c4b2fcaa27aa9f08530158f6d0614}{typedef \hyperlink{a00994_aed10fb4dfb536b53a5e20c8f2442eadf}{Mesh\+::\+Point} {\bfseries Point}}\label{a00844_a707c4b2fcaa27aa9f08530158f6d0614}

\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00844_a5a97855647addc932e36aaee7b9d3cb0}{\hyperlink{a00844_a5a97855647addc932e36aaee7b9d3cb0}{Mod\+Aspect\+Ratio\+T} (Mesh\+T \&\+\_\+mesh, float \+\_\+min\+\_\+aspect=5.\+0, bool \+\_\+is\+\_\+binary=true)}\label{a00844_a5a97855647addc932e36aaee7b9d3cb0}

\begin{DoxyCompactList}\small\item\em constructor \end{DoxyCompactList}\item 
\hypertarget{a00844_a6d2a96a4cff72b63097e469b876adfed}{\hyperlink{a00844_a6d2a96a4cff72b63097e469b876adfed}{$\sim$\+Mod\+Aspect\+Ratio\+T} ()}\label{a00844_a6d2a96a4cff72b63097e469b876adfed}

\begin{DoxyCompactList}\small\item\em destructor \end{DoxyCompactList}\item 
\hypertarget{a00844_aa76cb93e67a9aac8b494723363cd3500}{float \hyperlink{a00844_aa76cb93e67a9aac8b494723363cd3500}{aspect\+\_\+ratio} () const }\label{a00844_aa76cb93e67a9aac8b494723363cd3500}

\begin{DoxyCompactList}\small\item\em get aspect ratio \end{DoxyCompactList}\item 
\hypertarget{a00844_aabc557d41e0f4acd6f9cc409040c4696}{void \hyperlink{a00844_aabc557d41e0f4acd6f9cc409040c4696}{set\+\_\+aspect\+\_\+ratio} (float \+\_\+f)}\label{a00844_aabc557d41e0f4acd6f9cc409040c4696}

\begin{DoxyCompactList}\small\item\em set aspect ratio \end{DoxyCompactList}\item 
\hypertarget{a00844_ac225098b93bfec144931797078850e4d}{void \hyperlink{a00844_ac225098b93bfec144931797078850e4d}{initialize} ()}\label{a00844_ac225098b93bfec144931797078850e4d}

\begin{DoxyCompactList}\small\item\em precompute face aspect ratio \end{DoxyCompactList}\item 
\hypertarget{a00844_a088057a7f4482c86831a05b54de2271e}{float \hyperlink{a00844_a088057a7f4482c86831a05b54de2271e}{collapse\+\_\+priority} (const \hyperlink{a00417}{Collapse\+Info} \&\+\_\+ci)}\label{a00844_a088057a7f4482c86831a05b54de2271e}

\begin{DoxyCompactList}\small\item\em Returns the collapse priority. \end{DoxyCompactList}\item 
\hypertarget{a00844_aa4049ce266c474b148702674ede963a1}{void \hyperlink{a00844_aa4049ce266c474b148702674ede963a1}{preprocess\+\_\+collapse} (const \hyperlink{a00417}{Collapse\+Info} \&\+\_\+ci)}\label{a00844_aa4049ce266c474b148702674ede963a1}

\begin{DoxyCompactList}\small\item\em update aspect ratio of one-\/ring \end{DoxyCompactList}\item 
\hypertarget{a00844_a0de961edd95e71ce601e2f675c11b648}{void \hyperlink{a00844_a0de961edd95e71ce601e2f675c11b648}{set\+\_\+error\+\_\+tolerance\+\_\+factor} (double \+\_\+factor)}\label{a00844_a0de961edd95e71ce601e2f675c11b648}

\begin{DoxyCompactList}\small\item\em set percentage of aspect ratio \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
Scalar \hyperlink{a00844_a681fe35bb2d74b196711ba4cf67e249c}{aspect\+Ratio} (const Point \&\+\_\+v0, const Point \&\+\_\+v1, const Point \&\+\_\+v2)
\begin{DoxyCompactList}\small\item\em return aspect ratio (length/height) of triangle \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00844_a732e8381283a5792e0de47ad06f01e16}{Mesh \& {\bfseries mesh\+\_\+}}\label{a00844_a732e8381283a5792e0de47ad06f01e16}

\item 
\hypertarget{a00844_a74fa948a5738d2112ef491c5edd09afb}{float {\bfseries min\+\_\+aspect\+\_\+}}\label{a00844_a74fa948a5738d2112ef491c5edd09afb}

\item 
\hypertarget{a00844_a6f841f689f726a23b9f9a65909785d19}{\hyperlink{a00598}{F\+Prop\+Handle\+T}$<$ float $>$ {\bfseries aspect\+\_\+}}\label{a00844_a6f841f689f726a23b9f9a65909785d19}

\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
\subsubsection*{template$<$class Mesh\+T$>$class Open\+Mesh\+::\+Decimater\+::\+Mod\+Aspect\+Ratio\+T$<$ Mesh\+T $>$}

Use aspect ratio to control decimation. 

This module computes the aspect ratio.

In binary mode, the collapse is legal if\+:
\begin{DoxyItemize}
\item The aspect ratio after the collapse is greater
\item The aspect ratio after the collapse is greater than the given minimum
\end{DoxyItemize}

In continuous mode the collapse is illegal if\+:
\begin{DoxyItemize}
\item The aspect ratio after the collapse is smaller than the given minimum 
\end{DoxyItemize}

Definition at line 87 of file Mod\+Aspect\+Ratio\+T.\+hh.



\subsection{Member Function Documentation}
\hypertarget{a00844_a681fe35bb2d74b196711ba4cf67e249c}{\index{Open\+Mesh\+::\+Decimater\+::\+Mod\+Aspect\+Ratio\+T@{Open\+Mesh\+::\+Decimater\+::\+Mod\+Aspect\+Ratio\+T}!aspect\+Ratio@{aspect\+Ratio}}
\index{aspect\+Ratio@{aspect\+Ratio}!Open\+Mesh\+::\+Decimater\+::\+Mod\+Aspect\+Ratio\+T@{Open\+Mesh\+::\+Decimater\+::\+Mod\+Aspect\+Ratio\+T}}
\subsubsection[{aspect\+Ratio}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Mesh\+T $>$ {\bf Mod\+Aspect\+Ratio\+T}$<$ Mesh\+T $>$\+::Scalar {\bf Open\+Mesh\+::\+Decimater\+::\+Mod\+Aspect\+Ratio\+T}$<$ Mesh\+T $>$\+::aspect\+Ratio (
\begin{DoxyParamCaption}
\item[{const Point \&}]{\+\_\+v0, }
\item[{const Point \&}]{\+\_\+v1, }
\item[{const Point \&}]{\+\_\+v2}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [private]}}}\label{a00844_a681fe35bb2d74b196711ba4cf67e249c}


return aspect ratio (length/height) of triangle 



Definition at line 71 of file Mod\+Aspect\+Ratio\+T.\+cc.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Tools/\+Decimater/\hyperlink{a02025}{Mod\+Aspect\+Ratio\+T.\+hh}\item 
libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Tools/\+Decimater/\hyperlink{a02024}{Mod\+Aspect\+Ratio\+T.\+cc}\end{DoxyCompactItemize}
