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


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

Inheritance diagram for Open\+Mesh\+:\+:Decimater\+:\+:Mod\+Normal\+FlippingT$<$ MeshT $>$\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a08976}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08976_acb87a6ce3a49b3970c7222f89530bf72}\label{a08976_acb87a6ce3a49b3970c7222f89530bf72}} 
{\bfseries D\+E\+C\+I\+M\+A\+T\+I\+N\+G\+\_\+\+M\+O\+D\+U\+LE} (\hyperlink{a08976}{Mod\+Normal\+FlippingT}, MeshT, Normal\+Flipping)
\item 
\mbox{\Hypertarget{a08976_a07ac6abac9f29dfcfbfe5a31cc6de624}\label{a08976_a07ac6abac9f29dfcfbfe5a31cc6de624}} 
\hyperlink{a08976_a07ac6abac9f29dfcfbfe5a31cc6de624}{Mod\+Normal\+FlippingT} (MeshT \&\+\_\+mesh)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
float \hyperlink{a08976_ae8fc0ecbd533ba2a8ce00f364ce43a38}{collapse\+\_\+priority} (const \hyperlink{a08928}{Collapse\+Info} \&\+\_\+ci)
\item 
\mbox{\Hypertarget{a08976_a7bf4a80d6dbfa5a7fff510797e3ac112}\label{a08976_a7bf4a80d6dbfa5a7fff510797e3ac112}} 
void \hyperlink{a08976_a7bf4a80d6dbfa5a7fff510797e3ac112}{set\+\_\+error\+\_\+tolerance\+\_\+factor} (double \+\_\+factor)
\begin{DoxyCompactList}\small\item\em set the percentage of maximum normal deviation \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08976_a00e8437aab0e13703305fcf05f19228f}\label{a08976_a00e8437aab0e13703305fcf05f19228f}} 
double \hyperlink{a08976_a00e8437aab0e13703305fcf05f19228f}{max\+\_\+normal\+\_\+deviation} () const
\begin{DoxyCompactList}\small\item\em get normal deviation \end{DoxyCompactList}\item 
void \hyperlink{a08976_acad9f12c5b63bed362733adce479bb05}{set\+\_\+max\+\_\+normal\+\_\+deviation} (double \+\_\+d)
\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08976_ad80d21c9db4a0c32ef88788030340cd7}\label{a08976_ad80d21c9db4a0c32ef88788030340cd7}} 
void {\bfseries set\+\_\+binary} (bool \+\_\+b)
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08976_a630f218099788079e040f868f87edf9c}\label{a08976_a630f218099788079e040f868f87edf9c}} 
double {\bfseries max\+\_\+deviation\+\_\+}
\item 
\mbox{\Hypertarget{a08976_ac5a81ba7db53626584b7de3422311acf}\label{a08976_ac5a81ba7db53626584b7de3422311acf}} 
double {\bfseries min\+\_\+cos\+\_\+}
\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
\subsubsection*{template$<$typename MeshT$>$\newline
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 80 of file Mod\+Normal\+Flipping\+T.\+hh.



\subsection{Member Function Documentation}
\mbox{\Hypertarget{a08976_ae8fc0ecbd533ba2a8ce00f364ce43a38}\label{a08976_ae8fc0ecbd533ba2a8ce00f364ce43a38}} 
\index{Open\+Mesh\+::\+Decimater\+::\+Mod\+Normal\+FlippingT@{Open\+Mesh\+::\+Decimater\+::\+Mod\+Normal\+FlippingT}!collapse\+\_\+priority@{collapse\+\_\+priority}}
\index{collapse\+\_\+priority@{collapse\+\_\+priority}!Open\+Mesh\+::\+Decimater\+::\+Mod\+Normal\+FlippingT@{Open\+Mesh\+::\+Decimater\+::\+Mod\+Normal\+FlippingT}}
\subsubsection{\texorpdfstring{collapse\+\_\+priority()}{collapse\_priority()}}
{\footnotesize\ttfamily template$<$typename MeshT$>$ \\
float \hyperlink{a08976}{Open\+Mesh\+::\+Decimater\+::\+Mod\+Normal\+FlippingT}$<$ MeshT $>$\+::collapse\+\_\+priority (\begin{DoxyParamCaption}\item[{const \hyperlink{a08928}{Collapse\+Info} \&}]{\+\_\+ci }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}

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\+SE or I\+L\+L\+E\+G\+A\+L\+\_\+\+C\+O\+L\+L\+A\+P\+SE
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\hyperlink{a08976_acad9f12c5b63bed362733adce479bb05}{set\+\_\+max\+\_\+normal\+\_\+deviation()} 
\end{DoxySeeAlso}


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



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

\mbox{\Hypertarget{a08976_acad9f12c5b63bed362733adce479bb05}\label{a08976_acad9f12c5b63bed362733adce479bb05}} 
\index{Open\+Mesh\+::\+Decimater\+::\+Mod\+Normal\+FlippingT@{Open\+Mesh\+::\+Decimater\+::\+Mod\+Normal\+FlippingT}!set\+\_\+max\+\_\+normal\+\_\+deviation@{set\+\_\+max\+\_\+normal\+\_\+deviation}}
\index{set\+\_\+max\+\_\+normal\+\_\+deviation@{set\+\_\+max\+\_\+normal\+\_\+deviation}!Open\+Mesh\+::\+Decimater\+::\+Mod\+Normal\+FlippingT@{Open\+Mesh\+::\+Decimater\+::\+Mod\+Normal\+FlippingT}}
\subsubsection{\texorpdfstring{set\+\_\+max\+\_\+normal\+\_\+deviation()}{set\_max\_normal\_deviation()}}
{\footnotesize\ttfamily template$<$typename MeshT$>$ \\
void \hyperlink{a08976}{Open\+Mesh\+::\+Decimater\+::\+Mod\+Normal\+FlippingT}$<$ MeshT $>$\+::set\+\_\+max\+\_\+normal\+\_\+deviation (\begin{DoxyParamCaption}\item[{double}]{\+\_\+d }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

Set normal deviation

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

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



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