\hypertarget{a08524}{}\section{Open\+Mesh\+:\+:IO\+:\+:\+\_\+\+S\+T\+L\+Reader\+\_\+ Class Reference}
\label{a08524}\index{Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+}}


{\ttfamily \#include $<$Open\+Flipper/libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Core/\+I\+O/reader/\+S\+T\+L\+Reader.\+hh$>$}

Inheritance diagram for Open\+Mesh\+:\+:IO\+:\+:\+\_\+\+S\+T\+L\+Reader\+\_\+\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a08524}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08524_a88db910f48bfa7c42c873888bed4cfc6}\label{a08524_a88db910f48bfa7c42c873888bed4cfc6}} 
virtual \hyperlink{a08524_a88db910f48bfa7c42c873888bed4cfc6}{$\sim$\+\_\+\+S\+T\+L\+Reader\+\_\+} ()
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08524_a6e99d58672939e1bbd5b9c555d0eb4a9}\label{a08524_a6e99d58672939e1bbd5b9c555d0eb4a9}} 
std\+::string \hyperlink{a08524_a6e99d58672939e1bbd5b9c555d0eb4a9}{get\+\_\+description} () const
\begin{DoxyCompactList}\small\item\em Returns a brief description of the file type that can be parsed. \end{DoxyCompactList}\item 
std\+::string \hyperlink{a08524_a974b4bf5f40e54b2a4db5cce43570196}{get\+\_\+extensions} () const
\item 
bool \hyperlink{a08524_ab13615c05aef446846cf177b439bdeb7}{read} (const std\+::string \&\+\_\+filename, \hyperlink{a08468}{Base\+Importer} \&\+\_\+bi, \hyperlink{a08480}{Options} \&\+\_\+opt)
\item 
bool \hyperlink{a08524_ab0015a00f47a24d94dde0ee81a76666a}{read} (std\+::istream \&\+\_\+in, \hyperlink{a08468}{Base\+Importer} \&\+\_\+bi, \hyperlink{a08480}{Options} \&\+\_\+opt)
\item 
void \hyperlink{a08524_a858cd5bae3eea93ecc33ca12a3e6c475}{set\+\_\+epsilon} (float \+\_\+eps)
\item 
\mbox{\Hypertarget{a08524_acbefb6a50e972b08a99db82267cfa70c}\label{a08524_acbefb6a50e972b08a99db82267cfa70c}} 
float \hyperlink{a08524_acbefb6a50e972b08a99db82267cfa70c}{epsilon} () const
\begin{DoxyCompactList}\small\item\em Returns the threshold to be used for considering two point to be equal. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Types}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08524_a18af6adee5ca48b63bb91957db4455a6}\label{a08524_a18af6adee5ca48b63bb91957db4455a6}} 
enum {\bfseries S\+T\+L\+\_\+\+Type} \{ {\bfseries S\+T\+LA}, 
{\bfseries S\+T\+LB}, 
{\bfseries N\+O\+NE}
 \}
\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08524_a49a6cc5e7cf720410457007a304811b2}\label{a08524_a49a6cc5e7cf720410457007a304811b2}} 
S\+T\+L\+\_\+\+Type {\bfseries check\+\_\+stl\+\_\+type} (const std\+::string \&\+\_\+filename) const
\item 
\mbox{\Hypertarget{a08524_a5f8c40dfe0a56599a8595882d041f0dd}\label{a08524_a5f8c40dfe0a56599a8595882d041f0dd}} 
bool {\bfseries read\+\_\+stla} (const std\+::string \&\+\_\+filename, \hyperlink{a08468}{Base\+Importer} \&\+\_\+bi, \hyperlink{a08480}{Options} \&\+\_\+opt) const
\item 
\mbox{\Hypertarget{a08524_a1bc46af58da9dced42abb562a137b1f1}\label{a08524_a1bc46af58da9dced42abb562a137b1f1}} 
bool {\bfseries read\+\_\+stla} (std\+::istream \&\+\_\+in, \hyperlink{a08468}{Base\+Importer} \&\+\_\+bi, \hyperlink{a08480}{Options} \&\+\_\+opt) const
\item 
\mbox{\Hypertarget{a08524_a4aa3eb88abc1a21667c9c55a4b93d8ae}\label{a08524_a4aa3eb88abc1a21667c9c55a4b93d8ae}} 
bool {\bfseries read\+\_\+stlb} (const std\+::string \&\+\_\+filename, \hyperlink{a08468}{Base\+Importer} \&\+\_\+bi, \hyperlink{a08480}{Options} \&\+\_\+opt) const
\item 
\mbox{\Hypertarget{a08524_a12641bdfed74e5c3522da2be48bfc2f3}\label{a08524_a12641bdfed74e5c3522da2be48bfc2f3}} 
bool {\bfseries read\+\_\+stlb} (std\+::istream \&\+\_\+in, \hyperlink{a08468}{Base\+Importer} \&\+\_\+bi, \hyperlink{a08480}{Options} \&\+\_\+opt) const
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08524_aff38b3536cb026953f5398031465a037}\label{a08524_aff38b3536cb026953f5398031465a037}} 
float {\bfseries eps\+\_\+}
\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
Implementation of the S\+TL format reader. This class is singleton\textquotesingle{}ed by \hyperlink{a08912}{SingletonT} to S\+T\+L\+Reader. 

Definition at line 84 of file S\+T\+L\+Reader.\+hh.



\subsection{Member Function Documentation}
\mbox{\Hypertarget{a08524_a974b4bf5f40e54b2a4db5cce43570196}\label{a08524_a974b4bf5f40e54b2a4db5cce43570196}} 
\index{Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+}!get\+\_\+extensions@{get\+\_\+extensions}}
\index{get\+\_\+extensions@{get\+\_\+extensions}!Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+}}
\subsubsection{\texorpdfstring{get\+\_\+extensions()}{get\_extensions()}}
{\footnotesize\ttfamily std\+::string Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+\+::get\+\_\+extensions (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}

Returns a string with the accepted file extensions separated by a whitespace and in small caps. 

Implements \hyperlink{a08484_a9e76bc7b1b46b7a8b4922d8ca5934419}{Open\+Mesh\+::\+I\+O\+::\+Base\+Reader}.



Definition at line 97 of file S\+T\+L\+Reader.\+hh.

\mbox{\Hypertarget{a08524_ab13615c05aef446846cf177b439bdeb7}\label{a08524_ab13615c05aef446846cf177b439bdeb7}} 
\index{Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+}!read@{read}}
\index{read@{read}!Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+}}
\subsubsection{\texorpdfstring{read()}{read()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily bool Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+\+::read (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{\+\_\+filename,  }\item[{\hyperlink{a08468}{Base\+Importer} \&}]{\+\_\+bi,  }\item[{\hyperlink{a08480}{Options} \&}]{\+\_\+opt }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Reads a mesh given by a filename. Usually this method opens a stream and passes it to stream read method. Acceptance checks by filename extension can be placed here.

\hyperlink{a08480}{Options} can be passed via \+\_\+opt. After execution \+\_\+opt contains the \hyperlink{a08480}{Options} that were available 

Implements \hyperlink{a08484_af4a32645528c1bf2043a9259b172f411}{Open\+Mesh\+::\+I\+O\+::\+Base\+Reader}.



Definition at line 99 of file S\+T\+L\+Reader.\+cc.

\mbox{\Hypertarget{a08524_ab0015a00f47a24d94dde0ee81a76666a}\label{a08524_ab0015a00f47a24d94dde0ee81a76666a}} 
\index{Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+}!read@{read}}
\index{read@{read}!Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+}}
\subsubsection{\texorpdfstring{read()}{read()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily bool Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+\+::read (\begin{DoxyParamCaption}\item[{std\+::istream \&}]{\+\_\+is,  }\item[{\hyperlink{a08468}{Base\+Importer} \&}]{\+\_\+bi,  }\item[{\hyperlink{a08480}{Options} \&}]{\+\_\+opt }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Reads a mesh given by a std\+::stream. This method usually uses the same stream reading method that read uses. \hyperlink{a08480}{Options} can be passed via \+\_\+opt. After execution \+\_\+opt contains the \hyperlink{a08480}{Options} that were available.

Please make sure that if \+\_\+is is std\+::ifstream, the correct std\+::ios\+\_\+base\+::openmode flags are set. 

Implements \hyperlink{a08484_a0fd4df36decf91cd91a7f363aae56065}{Open\+Mesh\+::\+I\+O\+::\+Base\+Reader}.



Definition at line 149 of file S\+T\+L\+Reader.\+cc.

\mbox{\Hypertarget{a08524_a858cd5bae3eea93ecc33ca12a3e6c475}\label{a08524_a858cd5bae3eea93ecc33ca12a3e6c475}} 
\index{Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+}!set\+\_\+epsilon@{set\+\_\+epsilon}}
\index{set\+\_\+epsilon@{set\+\_\+epsilon}!Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+}}
\subsubsection{\texorpdfstring{set\+\_\+epsilon()}{set\_epsilon()}}
{\footnotesize\ttfamily void Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+\+::set\+\_\+epsilon (\begin{DoxyParamCaption}\item[{float}]{\+\_\+eps }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

Set the threshold to be used for considering two point to be equal. Can be used to merge small gaps 

Definition at line 109 of file S\+T\+L\+Reader.\+hh.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
Open\+Flipper/libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Core/\+I\+O/reader/S\+T\+L\+Reader.\+hh\item 
Open\+Flipper/libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Core/\+I\+O/reader/S\+T\+L\+Reader.\+cc\end{DoxyCompactItemize}
