\hypertarget{classOpenMesh_1_1Decimater_1_1ModEdgeLengthT}{}\section{Open\+Mesh\+:\+:Decimater\+:\+:Mod\+Edge\+LengthT$<$ MeshT $>$ Class Template Reference}
\label{classOpenMesh_1_1Decimater_1_1ModEdgeLengthT}\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]{classOpenMesh_1_1Decimater_1_1ModEdgeLengthT}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classOpenMesh_1_1Decimater_1_1ModEdgeLengthT_a64dacb1c6889dc21b25b8df488fc6cf6}\label{classOpenMesh_1_1Decimater_1_1ModEdgeLengthT_a64dacb1c6889dc21b25b8df488fc6cf6}} 
\hyperlink{classOpenMesh_1_1Decimater_1_1ModEdgeLengthT_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{classOpenMesh_1_1Decimater_1_1ModEdgeLengthT_ab5e760cd28b8523f64f0485674f700c4}\label{classOpenMesh_1_1Decimater_1_1ModEdgeLengthT_ab5e760cd28b8523f64f0485674f700c4}} 
float \hyperlink{classOpenMesh_1_1Decimater_1_1ModEdgeLengthT_ab5e760cd28b8523f64f0485674f700c4}{edge\+\_\+length} () const
\begin{DoxyCompactList}\small\item\em get edge\+\_\+length \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classOpenMesh_1_1Decimater_1_1ModEdgeLengthT_a50769dacd1da04bca568e2d441589a15}\label{classOpenMesh_1_1Decimater_1_1ModEdgeLengthT_a50769dacd1da04bca568e2d441589a15}} 
void \hyperlink{classOpenMesh_1_1Decimater_1_1ModEdgeLengthT_a50769dacd1da04bca568e2d441589a15}{set\+\_\+edge\+\_\+length} (typename \hyperlink{classOpenMesh_1_1PolyMeshT_a15372f27edf521d8e9028e2abccae342}{Mesh\+::\+Scalar} \+\_\+f)
\begin{DoxyCompactList}\small\item\em set edge\+\_\+length \end{DoxyCompactList}\item 
float \hyperlink{classOpenMesh_1_1Decimater_1_1ModEdgeLengthT_ac051bac3cde9afe41507514755b95d03}{collapse\+\_\+priority} (const \hyperlink{structOpenMesh_1_1Decimater_1_1CollapseInfoT}{Collapse\+Info} \&\+\_\+ci) override
\item 
\mbox{\Hypertarget{classOpenMesh_1_1Decimater_1_1ModEdgeLengthT_a34aef5589f477365f74d68afb101874a}\label{classOpenMesh_1_1Decimater_1_1ModEdgeLengthT_a34aef5589f477365f74d68afb101874a}} 
void \hyperlink{classOpenMesh_1_1Decimater_1_1ModEdgeLengthT_a34aef5589f477365f74d68afb101874a}{set\+\_\+error\+\_\+tolerance\+\_\+factor} (double \+\_\+factor) override
\begin{DoxyCompactList}\small\item\em set the percentage of edge length \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classOpenMesh_1_1Decimater_1_1ModEdgeLengthT_a599dd452e0401daddabf7d54f05ac9c6}\label{classOpenMesh_1_1Decimater_1_1ModEdgeLengthT_a599dd452e0401daddabf7d54f05ac9c6}} 
Mesh \& {\bfseries mesh\+\_\+}
\item 
\mbox{\Hypertarget{classOpenMesh_1_1Decimater_1_1ModEdgeLengthT_aaac16a3d7805266b46b1616156efe69d}\label{classOpenMesh_1_1Decimater_1_1ModEdgeLengthT_aaac16a3d7805266b46b1616156efe69d}} 
\hyperlink{classOpenMesh_1_1PolyMeshT_a15372f27edf521d8e9028e2abccae342}{Mesh\+::\+Scalar} {\bfseries edge\+\_\+length\+\_\+}
\item 
\mbox{\Hypertarget{classOpenMesh_1_1Decimater_1_1ModEdgeLengthT_a270657a0d39329004add290356cd9ef1}\label{classOpenMesh_1_1Decimater_1_1ModEdgeLengthT_a270657a0d39329004add290356cd9ef1}} 
\hyperlink{classOpenMesh_1_1PolyMeshT_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{classOpenMesh_1_1Decimater_1_1ModEdgeLengthT_ac051bac3cde9afe41507514755b95d03}\label{classOpenMesh_1_1Decimater_1_1ModEdgeLengthT_ac051bac3cde9afe41507514755b95d03}} 
\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{classOpenMesh_1_1Decimater_1_1ModEdgeLengthT}{Open\+Mesh\+::\+Decimater\+::\+Mod\+Edge\+LengthT}$<$ MeshT $>$\+::collapse\+\_\+priority (\begin{DoxyParamCaption}\item[{const \hyperlink{structOpenMesh_1_1Decimater_1_1CollapseInfoT}{Collapse\+Info} \&}]{\+\_\+ci }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [override]}, {\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{classOpenMesh_1_1Decimater_1_1ModBaseT_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{ModEdgeLengthT_8hh}{Mod\+Edge\+Length\+T.\+hh}\item 
Open\+Flipper/libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Tools/\+Decimater/\hyperlink{ModEdgeLengthT__impl_8hh}{Mod\+Edge\+Length\+T\+\_\+impl.\+hh}\end{DoxyCompactItemize}
