\hypertarget{classOpenMesh_1_1IO_1_1__OBJReader__}{}\section{Open\+Mesh\+:\+:IO\+:\+:\+\_\+\+O\+B\+J\+Reader\+\_\+ Class Reference}
\label{classOpenMesh_1_1IO_1_1__OBJReader__}\index{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Reader\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Reader\+\_\+}}


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

Inheritance diagram for Open\+Mesh\+:\+:IO\+:\+:\+\_\+\+O\+B\+J\+Reader\+\_\+\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classOpenMesh_1_1IO_1_1__OBJReader__}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classOpenMesh_1_1IO_1_1__OBJReader___aa87bbdb016926afb92d1b97660d027b7}\label{classOpenMesh_1_1IO_1_1__OBJReader___aa87bbdb016926afb92d1b97660d027b7}} 
std\+::string \hyperlink{classOpenMesh_1_1IO_1_1__OBJReader___aa87bbdb016926afb92d1b97660d027b7}{get\+\_\+description} () const override
\begin{DoxyCompactList}\small\item\em Returns a brief description of the file type that can be parsed. \end{DoxyCompactList}\item 
std\+::string \hyperlink{classOpenMesh_1_1IO_1_1__OBJReader___a8e8f3bf6baa396b2a6ef1f33a9bb8f22}{get\+\_\+extensions} () const override
\item 
bool \hyperlink{classOpenMesh_1_1IO_1_1__OBJReader___ae6c0e5609c06f59f0f509bed4638078f}{read} (const std\+::string \&\+\_\+filename, \hyperlink{classOpenMesh_1_1IO_1_1BaseImporter}{Base\+Importer} \&\+\_\+bi, \hyperlink{classOpenMesh_1_1IO_1_1Options}{Options} \&\+\_\+opt) override
\item 
bool \hyperlink{classOpenMesh_1_1IO_1_1__OBJReader___aabd1b863ade9abf70d2965caace7dbc9}{read} (std\+::istream \&\+\_\+in, \hyperlink{classOpenMesh_1_1IO_1_1BaseImporter}{Base\+Importer} \&\+\_\+bi, \hyperlink{classOpenMesh_1_1IO_1_1Options}{Options} \&\+\_\+opt) override
\end{DoxyCompactItemize}
\subsection*{Private Types}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classOpenMesh_1_1IO_1_1__OBJReader___af8cb1e58050837bb16133cd7ebeee320}\label{classOpenMesh_1_1IO_1_1__OBJReader___af8cb1e58050837bb16133cd7ebeee320}} 
typedef std\+::map$<$ std\+::string, Material $>$ {\bfseries Material\+List}
\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classOpenMesh_1_1IO_1_1__OBJReader___ab6ce5b0e51d8730fa6324a9b67eb1e46}\label{classOpenMesh_1_1IO_1_1__OBJReader___ab6ce5b0e51d8730fa6324a9b67eb1e46}} 
bool {\bfseries read\+\_\+material} (std\+::fstream \&\+\_\+in)
\item 
\mbox{\Hypertarget{classOpenMesh_1_1IO_1_1__OBJReader___ab5f1c0e007913ae8b73407e04ad320e7}\label{classOpenMesh_1_1IO_1_1__OBJReader___ab5f1c0e007913ae8b73407e04ad320e7}} 
bool {\bfseries read\+\_\+vertices} (std\+::istream \&\+\_\+in, \hyperlink{classOpenMesh_1_1IO_1_1BaseImporter}{Base\+Importer} \&\+\_\+bi, \hyperlink{classOpenMesh_1_1IO_1_1Options}{Options} \&\+\_\+opt, std\+::vector$<$ \hyperlink{namespaceOpenMesh_aa8903e7c1a37b97fb332a69122a7c6e8}{Vec3f} $>$ \&normals, std\+::vector$<$ \hyperlink{namespaceOpenMesh_aa8903e7c1a37b97fb332a69122a7c6e8}{Vec3f} $>$ \&colors, std\+::vector$<$ \hyperlink{namespaceOpenMesh_aa8903e7c1a37b97fb332a69122a7c6e8}{Vec3f} $>$ \&texcoords3d, std\+::vector$<$ \hyperlink{namespaceOpenMesh_abe4bc40898580f1b70eea39adaa4dda0}{Vec2f} $>$ \&texcoords, std\+::vector$<$ \hyperlink{structOpenMesh_1_1VertexHandle}{Vertex\+Handle} $>$ \&vertex\+Handles, \hyperlink{classOpenMesh_1_1IO_1_1Options}{Options} \&file\+Options)
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classOpenMesh_1_1IO_1_1__OBJReader___a591c84e103fb0d2a10968ae8d0609b81}\label{classOpenMesh_1_1IO_1_1__OBJReader___a591c84e103fb0d2a10968ae8d0609b81}} 
Material\+List {\bfseries materials\+\_\+}
\item 
\mbox{\Hypertarget{classOpenMesh_1_1IO_1_1__OBJReader___ab3410d4c19707251e6bb8763a0d16660}\label{classOpenMesh_1_1IO_1_1__OBJReader___ab3410d4c19707251e6bb8763a0d16660}} 
std\+::string {\bfseries path\+\_\+}
\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
Implementation of the O\+BJ format reader. 

Definition at line 82 of file O\+B\+J\+Reader.\+hh.



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

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

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



Definition at line 91 of file O\+B\+J\+Reader.\+hh.

\mbox{\Hypertarget{classOpenMesh_1_1IO_1_1__OBJReader___ae6c0e5609c06f59f0f509bed4638078f}\label{classOpenMesh_1_1IO_1_1__OBJReader___ae6c0e5609c06f59f0f509bed4638078f}} 
\index{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Reader\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Reader\+\_\+}!read@{read}}
\index{read@{read}!Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Reader\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Reader\+\_\+}}
\subsubsection{\texorpdfstring{read()}{read()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily bool Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Reader\+\_\+\+::read (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{\+\_\+filename,  }\item[{\hyperlink{classOpenMesh_1_1IO_1_1BaseImporter}{Base\+Importer} \&}]{\+\_\+bi,  }\item[{\hyperlink{classOpenMesh_1_1IO_1_1Options}{Options} \&}]{\+\_\+opt }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [override]}, {\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{classOpenMesh_1_1IO_1_1Options}{Options} can be passed via \+\_\+opt. After execution \+\_\+opt contains the \hyperlink{classOpenMesh_1_1IO_1_1Options}{Options} that were available 

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



Definition at line 124 of file O\+B\+J\+Reader.\+cc.

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

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

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

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



Definition at line 404 of file O\+B\+J\+Reader.\+cc.



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/O\+B\+J\+Reader.\+hh\item 
Open\+Flipper/libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Core/\+I\+O/reader/O\+B\+J\+Reader.\+cc\end{DoxyCompactItemize}
