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


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

Inheritance diagram for Open\+Mesh\+:\+:Decimater\+:\+:Mod\+Prog\+Mesh\+T$<$ Mesh\+T $>$\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a00854}
\end{center}
\end{figure}
\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{a00719}{Info}
\end{DoxyCompactItemize}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00854_abee243096a68fd0eea4dc1307dd1d16c}{typedef std\+::vector$<$ \hyperlink{a00719}{Info} $>$ \hyperlink{a00854_abee243096a68fd0eea4dc1307dd1d16c}{Info\+List}}\label{a00854_abee243096a68fd0eea4dc1307dd1d16c}

\begin{DoxyCompactList}\small\item\em Type of the list storing the progressive mesh info \hyperlink{a00719}{Info}. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00854_aa8d90fe58dc2a78651ba62c2c5646867}{{\bfseries D\+E\+C\+I\+M\+A\+T\+I\+N\+G\+\_\+\+M\+O\+D\+U\+L\+E} (\hyperlink{a00854}{Mod\+Prog\+Mesh\+T}, Mesh\+T, Prog\+Mesh)}\label{a00854_aa8d90fe58dc2a78651ba62c2c5646867}

\item 
\hypertarget{a00854_ad195363a5b1d1a5a6924b01344236d4d}{\hyperlink{a00854_ad195363a5b1d1a5a6924b01344236d4d}{Mod\+Prog\+Mesh\+T} (Mesh\+T \&\+\_\+mesh)}\label{a00854_ad195363a5b1d1a5a6924b01344236d4d}

\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\hypertarget{a00854_ac0304c26583a7c7be2fd873c48388d78}{\hyperlink{a00854_ac0304c26583a7c7be2fd873c48388d78}{$\sim$\+Mod\+Prog\+Mesh\+T} ()}\label{a00854_ac0304c26583a7c7be2fd873c48388d78}

\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\hypertarget{a00854_a6d8a802daa8cef5042ccec9b0ccafd8e}{const \hyperlink{a00854_abee243096a68fd0eea4dc1307dd1d16c}{Info\+List} \& {\bfseries pmi} () const }\label{a00854_a6d8a802daa8cef5042ccec9b0ccafd8e}

\item 
void \hyperlink{a00854_a557fa0451994a87346f85b90b50da7d4}{postprocess\+\_\+collapse} (const \hyperlink{a00417}{Collapse\+Info} \&\+\_\+ci)
\item 
\hypertarget{a00854_a41acf31a84ef3b42d837de8cfb91addc}{bool {\bfseries is\+\_\+binary} (void) const }\label{a00854_a41acf31a84ef3b42d837de8cfb91addc}

\item 
bool \hyperlink{a00854_a52f38ce6a1dafe179fa76b33e7addf17}{write} (const std\+::string \&\+\_\+ofname)
\item 
\hypertarget{a00854_a8280d01a04c3000170c86daccbcb9812}{const \hyperlink{a00854_abee243096a68fd0eea4dc1307dd1d16c}{Info\+List} \& \hyperlink{a00854_a8280d01a04c3000170c86daccbcb9812}{infolist} () const }\label{a00854_a8280d01a04c3000170c86daccbcb9812}

\begin{DoxyCompactList}\small\item\em Reference to collected information. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00854_a68d735d7137a231cdedd664731cd98e5}{void {\bfseries set\+\_\+binary} (bool \+\_\+b)}\label{a00854_a68d735d7137a231cdedd664731cd98e5}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00854_a2414e251d3f35d718feec81a94851eea}{\hyperlink{a00854_abee243096a68fd0eea4dc1307dd1d16c}{Info\+List} {\bfseries pmi\+\_\+}}\label{a00854_a2414e251d3f35d718feec81a94851eea}

\item 
\hypertarget{a00854_a8a89ff798128c4630b290784a27373ee}{\hyperlink{a01470}{V\+Prop\+Handle\+T}$<$ size\+\_\+t $>$ {\bfseries idx\+\_\+}}\label{a00854_a8a89ff798128c4630b290784a27373ee}

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


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

Collect progressive mesh information while decimating.

The progressive mesh data is stored in an internal structure, which can be evaluated after the decimation process and (!) before calling the garbage collection of the decimated mesh. 

Definition at line 85 of file Mod\+Prog\+Mesh\+T.\+hh.



\subsection{Member Function Documentation}
\hypertarget{a00854_a557fa0451994a87346f85b90b50da7d4}{\index{Open\+Mesh\+::\+Decimater\+::\+Mod\+Prog\+Mesh\+T@{Open\+Mesh\+::\+Decimater\+::\+Mod\+Prog\+Mesh\+T}!postprocess\+\_\+collapse@{postprocess\+\_\+collapse}}
\index{postprocess\+\_\+collapse@{postprocess\+\_\+collapse}!Open\+Mesh\+::\+Decimater\+::\+Mod\+Prog\+Mesh\+T@{Open\+Mesh\+::\+Decimater\+::\+Mod\+Prog\+Mesh\+T}}
\subsubsection[{postprocess\+\_\+collapse}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Mesh\+T$>$ void {\bf Open\+Mesh\+::\+Decimater\+::\+Mod\+Prog\+Mesh\+T}$<$ Mesh\+T $>$\+::postprocess\+\_\+collapse (
\begin{DoxyParamCaption}
\item[{const {\bf Collapse\+Info} \&}]{\+\_\+ci}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{a00854_a557fa0451994a87346f85b90b50da7d4}
Stores collapse information in a queue. \begin{DoxySeeAlso}{See also}
\hyperlink{a00854_a8280d01a04c3000170c86daccbcb9812}{infolist()} 
\end{DoxySeeAlso}


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



Definition at line 138 of file Mod\+Prog\+Mesh\+T.\+hh.

\hypertarget{a00854_a52f38ce6a1dafe179fa76b33e7addf17}{\index{Open\+Mesh\+::\+Decimater\+::\+Mod\+Prog\+Mesh\+T@{Open\+Mesh\+::\+Decimater\+::\+Mod\+Prog\+Mesh\+T}!write@{write}}
\index{write@{write}!Open\+Mesh\+::\+Decimater\+::\+Mod\+Prog\+Mesh\+T@{Open\+Mesh\+::\+Decimater\+::\+Mod\+Prog\+Mesh\+T}}
\subsubsection[{write}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Mesh\+T $>$ bool {\bf Open\+Mesh\+::\+Decimater\+::\+Mod\+Prog\+Mesh\+T}$<$ Mesh\+T $>$\+::write (
\begin{DoxyParamCaption}
\item[{const std\+::string \&}]{\+\_\+ofname}
\end{DoxyParamCaption}
)}}\label{a00854_a52f38ce6a1dafe179fa76b33e7addf17}
Write progressive mesh data to a file in proprietary binary format .pm.

The methods uses the collected data to write a progressive mesh file. It's a binary format with little endian byte ordering\+:


\begin{DoxyItemize}
\item The first 8 bytes contain the word \char`\"{}\+Prog\+Mesh\char`\"{}.
\item 32-\/bit int for the number of vertices {\ttfamily N\+V} in the base mesh.
\item 32-\/bit int for the number of faces in the base mesh.
\item 32-\/bit int for the number of halfedge collapses (now vertex splits)
\item Positions of vertices of the base mesh (32-\/bit float triplets).~\newline
 {\ttfamily }\mbox{[}x,y,z\mbox{]}\mbox{[}x,y,z\mbox{]}...
\item Triplets of indices (32-\/bit int) for each triangle (index in the list of vertices of the base mesh defined by the positions.~\newline
 {\ttfamily }\mbox{[}v0,v1,v2\mbox{]}\mbox{[}v0,v1,v2\mbox{]}...
\item For each collapse/split a detail information package made of 3 32-\/bit floats for the positions of vertex {\ttfamily v0}, and 3 32-\/bit int indices for {\ttfamily v1}, {\ttfamily vl}, and {\ttfamily vr}. The index for {\ttfamily vl} or {\ttfamily vr} might be -\/1, if the face on this side of the edge does not exists.
\end{DoxyItemize}

\begin{DoxyRemark}{Remarks}
Write file before calling the garbage collection of the mesh. 
\end{DoxyRemark}

\begin{DoxyParams}{Parameters}
{\em \+\_\+ofname} & Name of the file, where to write the progressive mesh \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily true} on success of the operation, else {\ttfamily false}. 
\end{DoxyReturn}


Definition at line 87 of file Mod\+Prog\+Mesh\+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{a02035}{Mod\+Prog\+Mesh\+T.\+hh}\item 
libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Tools/\+Decimater/\hyperlink{a02034}{Mod\+Prog\+Mesh\+T.\+cc}\end{DoxyCompactItemize}
