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


Use edge length to control decimation.  




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

Inheritance diagram for Open\+Mesh\+:\+:Decimater\+:\+:Mod\+Edge\+Length\+T$<$ Mesh\+T $>$\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a00847}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00847_a64dacb1c6889dc21b25b8df488fc6cf6}{\hyperlink{a00847_a64dacb1c6889dc21b25b8df488fc6cf6}{Mod\+Edge\+Length\+T} (Mesh\+T \&\+\_\+mesh, float \+\_\+edge\+\_\+length=F\+L\+T\+\_\+\+M\+A\+X, bool \+\_\+is\+\_\+binary=true)}\label{a00847_a64dacb1c6889dc21b25b8df488fc6cf6}

\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\hypertarget{a00847_ae26d4f819beb5de19fbef2f84252e0e7}{float \hyperlink{a00847_ae26d4f819beb5de19fbef2f84252e0e7}{edge\+\_\+length} () const }\label{a00847_ae26d4f819beb5de19fbef2f84252e0e7}

\begin{DoxyCompactList}\small\item\em get edge\+\_\+length \end{DoxyCompactList}\item 
\hypertarget{a00847_a580332f89d81f58dabd937e25096d5a0}{void \hyperlink{a00847_a580332f89d81f58dabd937e25096d5a0}{set\+\_\+edge\+\_\+length} (float \+\_\+f)}\label{a00847_a580332f89d81f58dabd937e25096d5a0}

\begin{DoxyCompactList}\small\item\em set edge\+\_\+length \end{DoxyCompactList}\item 
float \hyperlink{a00847_a8b205feac99470a63e6c3351088513a0}{collapse\+\_\+priority} (const \hyperlink{a00417}{Collapse\+Info} \&\+\_\+ci)
\item 
\hypertarget{a00847_a50454bc8ea7dd04451def96d6e447654}{void \hyperlink{a00847_a50454bc8ea7dd04451def96d6e447654}{set\+\_\+error\+\_\+tolerance\+\_\+factor} (double \+\_\+factor)}\label{a00847_a50454bc8ea7dd04451def96d6e447654}

\begin{DoxyCompactList}\small\item\em set the percentage of edge length \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00847_a599dd452e0401daddabf7d54f05ac9c6}{Mesh \& {\bfseries mesh\+\_\+}}\label{a00847_a599dd452e0401daddabf7d54f05ac9c6}

\item 
\hypertarget{a00847_aaac16a3d7805266b46b1616156efe69d}{\hyperlink{a00994_a15372f27edf521d8e9028e2abccae342}{Mesh\+::\+Scalar} {\bfseries edge\+\_\+length\+\_\+}}\label{a00847_aaac16a3d7805266b46b1616156efe69d}

\item 
\hypertarget{a00847_a270657a0d39329004add290356cd9ef1}{\hyperlink{a00994_a15372f27edf521d8e9028e2abccae342}{Mesh\+::\+Scalar} {\bfseries sqr\+\_\+edge\+\_\+length\+\_\+}}\label{a00847_a270657a0d39329004add290356cd9ef1}

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


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

Use edge length to control decimation. 

This module computes the edge length.

In binary and continuous mode, the collapse is legal if\+:
\begin{DoxyItemize}
\item The length after the collapse is lower than the given tolerance 
\end{DoxyItemize}

Definition at line 81 of file Mod\+Edge\+Length\+T.\+hh.



\subsection{Member Function Documentation}
\hypertarget{a00847_a8b205feac99470a63e6c3351088513a0}{\index{Open\+Mesh\+::\+Decimater\+::\+Mod\+Edge\+Length\+T@{Open\+Mesh\+::\+Decimater\+::\+Mod\+Edge\+Length\+T}!collapse\+\_\+priority@{collapse\+\_\+priority}}
\index{collapse\+\_\+priority@{collapse\+\_\+priority}!Open\+Mesh\+::\+Decimater\+::\+Mod\+Edge\+Length\+T@{Open\+Mesh\+::\+Decimater\+::\+Mod\+Edge\+Length\+T}}
\subsubsection[{collapse\+\_\+priority}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Mesh\+T $>$ float {\bf Open\+Mesh\+::\+Decimater\+::\+Mod\+Edge\+Length\+T}$<$ Mesh\+T $>$\+::collapse\+\_\+priority (
\begin{DoxyParamCaption}
\item[{const {\bf Collapse\+Info} \&}]{\+\_\+ci}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{a00847_a8b205feac99470a63e6c3351088513a0}
Compute priority\+: Binary mode\+: Don't collapse edges longer then edge\+\_\+length\+\_\+ Cont. mode\+: Collapse smallest edge first, but don't collapse edges longer as edge\+\_\+length\+\_\+ 

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



Definition at line 80 of file Mod\+Edge\+Length\+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{a02028}{Mod\+Edge\+Length\+T.\+hh}\item 
libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Tools/\+Decimater/\hyperlink{a02027}{Mod\+Edge\+Length\+T.\+cc}\end{DoxyCompactItemize}
