EBGeometry 1.0
Loading...
Searching...
No Matches
Enumerations | Functions
Parser Namespace Reference

Namespace which encapsulates possible file parsers for building EBGeometry data structures. More...

Enumerations

enum class  Encoding { ASCII , Binary , Unknown }
 Simple enum for separating ASCII and binary files.
 
enum class  FileType { STL , PLY , VTK , Unsupported }
 Various supported file types.
 

Functions

template<typename T >
PLY< TreadPLY (const std::string &a_filename) noexcept
 Read a single PLY file.
 
template<typename T >
std::vector< PLY< T > > readPLY (const std::vector< std::string > &a_filenames) noexcept
 Read multiple PLY files.
 
template<typename T >
STL< TreadSTL (const std::string &a_filename) noexcept
 Read a single STL file.
 
template<typename T >
std::vector< STL< T > > readSTL (const std::vector< std::string > &a_filenames) noexcept
 Read multiple STL files.
 
template<typename T >
VTK< TreadVTK (const std::string &a_filename) noexcept
 Read a single VTK file.
 
template<typename T >
std::vector< VTK< T > > readVTK (const std::vector< std::string > &a_filenames) noexcept
 Read multiple VTK files.
 

Detailed Description

Namespace which encapsulates possible file parsers for building EBGeometry data structures.

Function Documentation

◆ readPLY() [1/2]

template<typename T >
PLY< T > Parser::readPLY ( const std::string &  a_filename)
noexcept

Read a single PLY file.

Parameters
[in]a_filenamePLY file name.

◆ readPLY() [2/2]

template<typename T >
std::vector< PLY< T > > Parser::readPLY ( const std::vector< std::string > &  a_filenames)
noexcept

Read multiple PLY files.

Parameters
[in]a_filenamesPLY file names.

◆ readSTL() [1/2]

template<typename T >
STL< T > Parser::readSTL ( const std::string &  a_filename)
noexcept

Read a single STL file.

Parameters
[in]a_filenameSTL file name.
Note
If the STL file contains multiple solids (which is uncommon but technically supported), this routine will only read the first one.

◆ readSTL() [2/2]

template<typename T >
std::vector< STL< T > > Parser::readSTL ( const std::vector< std::string > &  a_filenames)
noexcept

Read multiple STL files.

Parameters
[in]a_filenamesSTL file names.
Note
If the STL file contains multiple solids (which is uncommon but technically supported), this routine will only read the first one.

◆ readVTK() [1/2]

template<typename T >
VTK< T > Parser::readVTK ( const std::string &  a_filename)
noexcept

Read a single VTK file.

Parameters
[in]a_filenameVTK file name.

◆ readVTK() [2/2]

template<typename T >
std::vector< VTK< T > > Parser::readVTK ( const std::vector< std::string > &  a_filenames)
noexcept

Read multiple VTK files.

Parameters
[in]a_filenamesVTK file names.