\hypertarget{a08960}{}\section{Open\+Mesh\+:\+:Decimater\+:\+:Mod\+Edge\+LengthT$<$ MeshT $>$ Class Template Reference}
\label{a08960}\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 $<$Open\+Flipper/libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Tools/\+Decimater/\+Mod\+Edge\+Length\+T.\+hh$>$}

Inheritance diagram for Open\+Mesh\+:\+:Decimater\+:\+:Mod\+Edge\+LengthT$<$ MeshT $>$\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a08960}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08960_a64dacb1c6889dc21b25b8df488fc6cf6}\label{a08960_a64dacb1c6889dc21b25b8df488fc6cf6}} 
\hyperlink{a08960_a64dacb1c6889dc21b25b8df488fc6cf6}{Mod\+Edge\+LengthT} (MeshT \&\+\_\+mesh, float \+\_\+edge\+\_\+length=F\+L\+T\+\_\+\+M\+AX, bool \+\_\+is\+\_\+binary=true)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08960_ab5e760cd28b8523f64f0485674f700c4}\label{a08960_ab5e760cd28b8523f64f0485674f700c4}} 
float \hyperlink{a08960_ab5e760cd28b8523f64f0485674f700c4}{edge\+\_\+length} () const
\begin{DoxyCompactList}\small\item\em get edge\+\_\+length \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08960_a50769dacd1da04bca568e2d441589a15}\label{a08960_a50769dacd1da04bca568e2d441589a15}} 
void \hyperlink{a08960_a50769dacd1da04bca568e2d441589a15}{set\+\_\+edge\+\_\+length} (typename \hyperlink{a08776_a15372f27edf521d8e9028e2abccae342}{Mesh\+::\+Scalar} \+\_\+f)
\begin{DoxyCompactList}\small\item\em set edge\+\_\+length \end{DoxyCompactList}\item 
float \hyperlink{a08960_a8b205feac99470a63e6c3351088513a0}{collapse\+\_\+priority} (const \hyperlink{a08928}{Collapse\+Info} \&\+\_\+ci)
\item 
\mbox{\Hypertarget{a08960_a50454bc8ea7dd04451def96d6e447654}\label{a08960_a50454bc8ea7dd04451def96d6e447654}} 
void \hyperlink{a08960_a50454bc8ea7dd04451def96d6e447654}{set\+\_\+error\+\_\+tolerance\+\_\+factor} (double \+\_\+factor)
\begin{DoxyCompactList}\small\item\em set the percentage of edge length \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08960_a599dd452e0401daddabf7d54f05ac9c6}\label{a08960_a599dd452e0401daddabf7d54f05ac9c6}} 
Mesh \& {\bfseries mesh\+\_\+}
\item 
\mbox{\Hypertarget{a08960_aaac16a3d7805266b46b1616156efe69d}\label{a08960_aaac16a3d7805266b46b1616156efe69d}} 
\hyperlink{a08776_a15372f27edf521d8e9028e2abccae342}{Mesh\+::\+Scalar} {\bfseries edge\+\_\+length\+\_\+}
\item 
\mbox{\Hypertarget{a08960_a270657a0d39329004add290356cd9ef1}\label{a08960_a270657a0d39329004add290356cd9ef1}} 
\hyperlink{a08776_a15372f27edf521d8e9028e2abccae342}{Mesh\+::\+Scalar} {\bfseries sqr\+\_\+edge\+\_\+length\+\_\+}
\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
\subsubsection*{template$<$class MeshT$>$\newline
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 75 of file Mod\+Edge\+Length\+T.\+hh.



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

Compute priority\+: Binary mode\+: Don\textquotesingle{}t collapse edges longer then edge\+\_\+length\+\_\+ Cont. mode\+: Collapse smallest edge first, but don\textquotesingle{}t collapse edges longer as edge\+\_\+length\+\_\+ 

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



Definition at line 74 of file Mod\+Edge\+Length\+T\+\_\+impl.\+hh.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
Open\+Flipper/libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Tools/\+Decimater/\hyperlink{a02210}{Mod\+Edge\+Length\+T.\+hh}\item 
Open\+Flipper/libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Tools/\+Decimater/\hyperlink{a02213}{Mod\+Edge\+Length\+T\+\_\+impl.\+hh}\end{DoxyCompactItemize}
