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


Mesh decimation module computing collapse priority based on error quadrics.  




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

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

\item 
\hyperlink{a00855_a133497b5da2d4164a2caaa694af2c64a}{Mod\+Quadric\+T} (Mesh\+T \&\+\_\+mesh)
\item 
\hypertarget{a00855_ab61e337c3cea0e7c1e796207ec8bd7e0}{virtual \hyperlink{a00855_ab61e337c3cea0e7c1e796207ec8bd7e0}{$\sim$\+Mod\+Quadric\+T} ()}\label{a00855_ab61e337c3cea0e7c1e796207ec8bd7e0}

\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\hypertarget{a00855_aeeff135f4141c2f231f1428a974d7c0d}{virtual void \hyperlink{a00855_aeeff135f4141c2f231f1428a974d7c0d}{initialize} (void)}\label{a00855_aeeff135f4141c2f231f1428a974d7c0d}

\begin{DoxyCompactList}\small\item\em Initalize the module and prepare the mesh for decimation. \end{DoxyCompactList}\item 
virtual float \hyperlink{a00855_af831bbc194faf3a3c346bd215f01f413}{collapse\+\_\+priority} (const \hyperlink{a00417}{Collapse\+Info} \&\+\_\+ci)
\item 
\hypertarget{a00855_acc01feeb26061855e79480a035068c0c}{virtual void \hyperlink{a00855_acc01feeb26061855e79480a035068c0c}{postprocess\+\_\+collapse} (const \hyperlink{a00417}{Collapse\+Info} \&\+\_\+ci)}\label{a00855_acc01feeb26061855e79480a035068c0c}

\begin{DoxyCompactList}\small\item\em Post-\/process halfedge collapse (accumulate quadrics) \end{DoxyCompactList}\item 
\hypertarget{a00855_a31113d67dcd8953edef8377572e0b173}{void \hyperlink{a00855_a31113d67dcd8953edef8377572e0b173}{set\+\_\+error\+\_\+tolerance\+\_\+factor} (double \+\_\+factor)}\label{a00855_a31113d67dcd8953edef8377572e0b173}

\begin{DoxyCompactList}\small\item\em set the percentage of maximum quadric error \end{DoxyCompactList}\item 
void \hyperlink{a00855_a7fb01ec4e21be8b62d5c299b7126ce99}{set\+\_\+max\+\_\+err} (double \+\_\+err, bool \+\_\+binary=true)
\item 
void \hyperlink{a00855_af4f40b99ab088afe24cf10e9b3cda469}{unset\+\_\+max\+\_\+err} (void)
\item 
\hypertarget{a00855_a32cd14801e16d308d2cdae825c77de20}{double \hyperlink{a00855_a32cd14801e16d308d2cdae825c77de20}{max\+\_\+err} () const }\label{a00855_a32cd14801e16d308d2cdae825c77de20}

\begin{DoxyCompactList}\small\item\em Return value of max. allowed error. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00855_a5d19c4f2a2ba1cda94316f22917e5f43}{double {\bfseries max\+\_\+err\+\_\+}}\label{a00855_a5d19c4f2a2ba1cda94316f22917e5f43}

\item 
\hypertarget{a00855_add365e115cd723bd90f7a4dcf36746b3}{\hyperlink{a01470}{V\+Prop\+Handle\+T}\\*
$<$ \hyperlink{a01089}{Geometry\+::\+Quadric\+T}$<$ double $>$ $>$ {\bfseries quadrics\+\_\+}}\label{a00855_add365e115cd723bd90f7a4dcf36746b3}

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


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

Mesh decimation module computing collapse priority based on error quadrics. 

This module can be used as a binary and non-\/binary module. 

Definition at line 83 of file Mod\+Quadric\+T.\+hh.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{a00855_a133497b5da2d4164a2caaa694af2c64a}{\index{Open\+Mesh\+::\+Decimater\+::\+Mod\+Quadric\+T@{Open\+Mesh\+::\+Decimater\+::\+Mod\+Quadric\+T}!Mod\+Quadric\+T@{Mod\+Quadric\+T}}
\index{Mod\+Quadric\+T@{Mod\+Quadric\+T}!Open\+Mesh\+::\+Decimater\+::\+Mod\+Quadric\+T@{Open\+Mesh\+::\+Decimater\+::\+Mod\+Quadric\+T}}
\subsubsection[{Mod\+Quadric\+T}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Mesh\+T$>$ {\bf Open\+Mesh\+::\+Decimater\+::\+Mod\+Quadric\+T}$<$ Mesh\+T $>$\+::{\bf Mod\+Quadric\+T} (
\begin{DoxyParamCaption}
\item[{Mesh\+T \&}]{\+\_\+mesh}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{a00855_a133497b5da2d4164a2caaa694af2c64a}
Constructor 

Definition at line 96 of file Mod\+Quadric\+T.\+hh.



\subsection{Member Function Documentation}
\hypertarget{a00855_af831bbc194faf3a3c346bd215f01f413}{\index{Open\+Mesh\+::\+Decimater\+::\+Mod\+Quadric\+T@{Open\+Mesh\+::\+Decimater\+::\+Mod\+Quadric\+T}!collapse\+\_\+priority@{collapse\+\_\+priority}}
\index{collapse\+\_\+priority@{collapse\+\_\+priority}!Open\+Mesh\+::\+Decimater\+::\+Mod\+Quadric\+T@{Open\+Mesh\+::\+Decimater\+::\+Mod\+Quadric\+T}}
\subsubsection[{collapse\+\_\+priority}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Mesh\+T$>$ virtual float {\bf Open\+Mesh\+::\+Decimater\+::\+Mod\+Quadric\+T}$<$ Mesh\+T $>$\+::collapse\+\_\+priority (
\begin{DoxyParamCaption}
\item[{const {\bf Collapse\+Info} \&}]{\+\_\+ci}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{a00855_af831bbc194faf3a3c346bd215f01f413}
Compute collapse priority based on error quadrics.

\begin{DoxySeeAlso}{See also}
\hyperlink{a00846_acb81c6b9a752741fce2366ca605cd14c}{Mod\+Base\+T\+::collapse\+\_\+priority()} for return values 

\hyperlink{a00855_a7fb01ec4e21be8b62d5c299b7126ce99}{set\+\_\+max\+\_\+err()} 
\end{DoxySeeAlso}


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



Reimplemented in \hyperlink{a00845_a627c9486bf8c3975363e4053a3d8c323}{Mod\+Balancer\+T$<$ D $>$}.



Definition at line 121 of file Mod\+Quadric\+T.\+hh.

\hypertarget{a00855_a7fb01ec4e21be8b62d5c299b7126ce99}{\index{Open\+Mesh\+::\+Decimater\+::\+Mod\+Quadric\+T@{Open\+Mesh\+::\+Decimater\+::\+Mod\+Quadric\+T}!set\+\_\+max\+\_\+err@{set\+\_\+max\+\_\+err}}
\index{set\+\_\+max\+\_\+err@{set\+\_\+max\+\_\+err}!Open\+Mesh\+::\+Decimater\+::\+Mod\+Quadric\+T@{Open\+Mesh\+::\+Decimater\+::\+Mod\+Quadric\+T}}
\subsubsection[{set\+\_\+max\+\_\+err}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Mesh\+T$>$ void {\bf Open\+Mesh\+::\+Decimater\+::\+Mod\+Quadric\+T}$<$ Mesh\+T $>$\+::set\+\_\+max\+\_\+err (
\begin{DoxyParamCaption}
\item[{double}]{\+\_\+err, }
\item[{bool}]{\+\_\+binary = {\ttfamily true}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{a00855_a7fb01ec4e21be8b62d5c299b7126ce99}
Set maximum quadric error constraint and enable binary mode. 
\begin{DoxyParams}{Parameters}
{\em \+\_\+err} & Maximum error allowed \\
\hline
{\em \+\_\+binary} & Let the module work in non-\/binary mode in spite of the enabled constraint. \\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\hyperlink{a00855_af4f40b99ab088afe24cf10e9b3cda469}{unset\+\_\+max\+\_\+err()} 
\end{DoxySeeAlso}


Definition at line 161 of file Mod\+Quadric\+T.\+hh.

\hypertarget{a00855_af4f40b99ab088afe24cf10e9b3cda469}{\index{Open\+Mesh\+::\+Decimater\+::\+Mod\+Quadric\+T@{Open\+Mesh\+::\+Decimater\+::\+Mod\+Quadric\+T}!unset\+\_\+max\+\_\+err@{unset\+\_\+max\+\_\+err}}
\index{unset\+\_\+max\+\_\+err@{unset\+\_\+max\+\_\+err}!Open\+Mesh\+::\+Decimater\+::\+Mod\+Quadric\+T@{Open\+Mesh\+::\+Decimater\+::\+Mod\+Quadric\+T}}
\subsubsection[{unset\+\_\+max\+\_\+err}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Mesh\+T$>$ void {\bf Open\+Mesh\+::\+Decimater\+::\+Mod\+Quadric\+T}$<$ Mesh\+T $>$\+::unset\+\_\+max\+\_\+err (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{a00855_af4f40b99ab088afe24cf10e9b3cda469}
Unset maximum quadric error constraint and restore non-\/binary mode. \begin{DoxySeeAlso}{See also}
\hyperlink{a00855_a7fb01ec4e21be8b62d5c299b7126ce99}{set\+\_\+max\+\_\+err()} 
\end{DoxySeeAlso}


Definition at line 169 of file Mod\+Quadric\+T.\+hh.



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