\hypertarget{a00853}{\section{Open\+Mesh\+:\+:Decimater\+:\+:Mod\+Normal\+Flipping\+T$<$ Mesh\+T $>$ Class Template Reference}
\label{a00853}\index{Open\+Mesh\+::\+Decimater\+::\+Mod\+Normal\+Flipping\+T$<$ Mesh\+T $>$@{Open\+Mesh\+::\+Decimater\+::\+Mod\+Normal\+Flipping\+T$<$ Mesh\+T $>$}}
}


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

Inheritance diagram for Open\+Mesh\+:\+:Decimater\+:\+:Mod\+Normal\+Flipping\+T$<$ Mesh\+T $>$\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a00853}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00853_acb87a6ce3a49b3970c7222f89530bf72}{{\bfseries D\+E\+C\+I\+M\+A\+T\+I\+N\+G\+\_\+\+M\+O\+D\+U\+L\+E} (\hyperlink{a00853}{Mod\+Normal\+Flipping\+T}, Mesh\+T, Normal\+Flipping)}\label{a00853_acb87a6ce3a49b3970c7222f89530bf72}

\item 
\hypertarget{a00853_a07ac6abac9f29dfcfbfe5a31cc6de624}{\hyperlink{a00853_a07ac6abac9f29dfcfbfe5a31cc6de624}{Mod\+Normal\+Flipping\+T} (Mesh\+T \&\+\_\+mesh)}\label{a00853_a07ac6abac9f29dfcfbfe5a31cc6de624}

\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
float \hyperlink{a00853_ae8fc0ecbd533ba2a8ce00f364ce43a38}{collapse\+\_\+priority} (const \hyperlink{a00417}{Collapse\+Info} \&\+\_\+ci)
\item 
\hypertarget{a00853_a7bf4a80d6dbfa5a7fff510797e3ac112}{void \hyperlink{a00853_a7bf4a80d6dbfa5a7fff510797e3ac112}{set\+\_\+error\+\_\+tolerance\+\_\+factor} (double \+\_\+factor)}\label{a00853_a7bf4a80d6dbfa5a7fff510797e3ac112}

\begin{DoxyCompactList}\small\item\em set the percentage of maximum normal deviation \end{DoxyCompactList}\item 
\hypertarget{a00853_ae0152e836e48b493a1f0dcaba0bff199}{double \hyperlink{a00853_ae0152e836e48b493a1f0dcaba0bff199}{max\+\_\+normal\+\_\+deviation} () const }\label{a00853_ae0152e836e48b493a1f0dcaba0bff199}

\begin{DoxyCompactList}\small\item\em get normal deviation \end{DoxyCompactList}\item 
void \hyperlink{a00853_acad9f12c5b63bed362733adce479bb05}{set\+\_\+max\+\_\+normal\+\_\+deviation} (double \+\_\+d)
\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00853_ad80d21c9db4a0c32ef88788030340cd7}{void {\bfseries set\+\_\+binary} (bool \+\_\+b)}\label{a00853_ad80d21c9db4a0c32ef88788030340cd7}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00853_a630f218099788079e040f868f87edf9c}{double {\bfseries max\+\_\+deviation\+\_\+}}\label{a00853_a630f218099788079e040f868f87edf9c}

\item 
\hypertarget{a00853_ac5a81ba7db53626584b7de3422311acf}{double {\bfseries min\+\_\+cos\+\_\+}}\label{a00853_ac5a81ba7db53626584b7de3422311acf}

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


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

Decimating module to avoid flipping of faces.

This module can be used only as a binary module. The criterion of allowing/disallowing the collapse is the angular deviation between the face normal of the original faces and normals of the faces after the collapse. The collapse will pass the test, if the deviation is below a given threshold. 

Definition at line 85 of file Mod\+Normal\+Flipping\+T.\+hh.



\subsection{Member Function Documentation}
\hypertarget{a00853_ae8fc0ecbd533ba2a8ce00f364ce43a38}{\index{Open\+Mesh\+::\+Decimater\+::\+Mod\+Normal\+Flipping\+T@{Open\+Mesh\+::\+Decimater\+::\+Mod\+Normal\+Flipping\+T}!collapse\+\_\+priority@{collapse\+\_\+priority}}
\index{collapse\+\_\+priority@{collapse\+\_\+priority}!Open\+Mesh\+::\+Decimater\+::\+Mod\+Normal\+Flipping\+T@{Open\+Mesh\+::\+Decimater\+::\+Mod\+Normal\+Flipping\+T}}
\subsubsection[{collapse\+\_\+priority}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Mesh\+T$>$ float {\bf Open\+Mesh\+::\+Decimater\+::\+Mod\+Normal\+Flipping\+T}$<$ Mesh\+T $>$\+::collapse\+\_\+priority (
\begin{DoxyParamCaption}
\item[{const {\bf Collapse\+Info} \&}]{\+\_\+ci}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{a00853_ae8fc0ecbd533ba2a8ce00f364ce43a38}
Compute collapse priority due to angular deviation of face normals before and after a collapse.


\begin{DoxyEnumerate}
\item Compute for each adjacent face of {\ttfamily \+\_\+ci.\+v0} the face normal if the collpase would be executed.
\item Prevent the collapse, if the cosine of the angle between the original and the new normal is below a given threshold.
\end{DoxyEnumerate}


\begin{DoxyParams}{Parameters}
{\em \+\_\+ci} & The collapse description \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
L\+E\+G\+A\+L\+\_\+\+C\+O\+L\+L\+A\+P\+S\+E or I\+L\+L\+E\+G\+A\+L\+\_\+\+C\+O\+L\+L\+A\+P\+S\+E
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\hyperlink{a00853_acad9f12c5b63bed362733adce479bb05}{set\+\_\+max\+\_\+normal\+\_\+deviation()} 
\end{DoxySeeAlso}


Reimplemented from \hyperlink{a00846_acb81c6b9a752741fce2366ca605cd14c}{Open\+Mesh\+::\+Decimater\+::\+Mod\+Base\+T$<$ Mesh\+T $>$}.



Definition at line 130 of file Mod\+Normal\+Flipping\+T.\+hh.

\hypertarget{a00853_acad9f12c5b63bed362733adce479bb05}{\index{Open\+Mesh\+::\+Decimater\+::\+Mod\+Normal\+Flipping\+T@{Open\+Mesh\+::\+Decimater\+::\+Mod\+Normal\+Flipping\+T}!set\+\_\+max\+\_\+normal\+\_\+deviation@{set\+\_\+max\+\_\+normal\+\_\+deviation}}
\index{set\+\_\+max\+\_\+normal\+\_\+deviation@{set\+\_\+max\+\_\+normal\+\_\+deviation}!Open\+Mesh\+::\+Decimater\+::\+Mod\+Normal\+Flipping\+T@{Open\+Mesh\+::\+Decimater\+::\+Mod\+Normal\+Flipping\+T}}
\subsubsection[{set\+\_\+max\+\_\+normal\+\_\+deviation}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Mesh\+T$>$ void {\bf Open\+Mesh\+::\+Decimater\+::\+Mod\+Normal\+Flipping\+T}$<$ Mesh\+T $>$\+::set\+\_\+max\+\_\+normal\+\_\+deviation (
\begin{DoxyParamCaption}
\item[{double}]{\+\_\+d}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{a00853_acad9f12c5b63bed362733adce479bb05}
Set normal deviation

Set the maximum angular deviation of the orignal normal and the new normal in degrees. 

Definition at line 184 of file Mod\+Normal\+Flipping\+T.\+hh.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Tools/\+Decimater/\hyperlink{a02033}{Mod\+Normal\+Flipping\+T.\+hh}\end{DoxyCompactItemize}
