OpenMesh::IO Namespace Reference

Namespaces

namespace  OMFormat

Classes

class  _IOManager_
class  _OBJReader_
class  _OBJWriter_
class  _OFFReader_
class  _OFFWriter_
class  _OMReader_
class  _OMWriter_
class  _PLYReader_
class  _PLYWriter_
class  _STLReader_
class  _STLWriter_
class  BaseExporter
class  BaseImporter
class  BaseReader
class  BaseWriter
struct  binary
struct  binary< OpenMesh::Attributes::StatusInfo >
struct  binary< std::string >
struct  binary< std::vector< bool > >
struct  binary< std::vector< std::string > >
class  ExporterT
struct  FunctorRestore
struct  FunctorStore
class  ImporterT
struct  OFFFormat
class  Options
 Set options for reader/writer modules. More...

Typedefs

typedef GenProg::True t_signed
typedef GenProg::False t_unsigned

Functions

 BINARY_VECTOR (double)
 BINARY_VECTOR (float)
 BINARY_VECTOR (long)
 BINARY_VECTOR (int)
 BINARY_VECTOR (unsigned short)
 BINARY_VECTOR (short)
_IOManager_IOManager ()
_OBJReader_OBJReader ()
_OBJWriter_OBJWriter ()
_OFFReader_OFFReader ()
_OFFWriter_OFFWriter ()
_OMReader_OMReader ()
_OMWriter_OMWriter ()
_PLYReader_PLYReader ()
_PLYWriter_PLYWriter ()
template<>
size_t restore (std::istream &_is, OMFormat::Chunk::PropertyName &_pn, bool _swap)
template<typename VecT >
size_t restore (std::istream &_is, VecT &_vec, GenProg::Int2Type< 1 >, bool _swap)
template<typename VecT >
size_t restore (std::istream &_is, VecT &_vec, GenProg::Int2Type< 4 >, bool _swap)
template<typename VecT >
size_t restore (std::istream &_is, VecT &_vec, GenProg::Int2Type< 3 >, bool _swap)
template<typename VecT >
size_t restore (std::istream &_is, VecT &_vec, GenProg::Int2Type< 2 >, bool _swap)
template<typename T >
size_t restore (std::istream &_is, T &_val, OMFormat::Chunk::Integer_Size _b, bool _swap)
 Restore an integer with a wanted number of bits.
template<typename T >
size_t restore (std::istream &_is, T &_val, OMFormat::Chunk::Integer_Size _b, bool _swap, t_signed)
template<>
size_t restore (std::istream &_is, OMFormat::Chunk::Header &_hdr, bool _swap)
template<>
size_t restore (std::istream &_is, OMFormat::Header &_hdr, bool _swap)
 SIMPLE_BINARY (unsigned long)
 SIMPLE_BINARY (uint64_t)
 SIMPLE_BINARY (uint32_t)
 SIMPLE_BINARY (uint16_t)
 SIMPLE_BINARY (uint8_t)
 SIMPLE_BINARY (int64_t)
 SIMPLE_BINARY (int32_t)
 SIMPLE_BINARY (int16_t)
 SIMPLE_BINARY (int8_t)
 SIMPLE_BINARY (long double)
 SIMPLE_BINARY (double)
 SIMPLE_BINARY (float)
 SIMPLE_BINARY (bool)
_STLReader_STLReader ()
_STLWriter_STLWriter ()
template<>
size_t store (std::ostream &_os, const OMFormat::Chunk::PropertyName &_pn, bool _swap)
template<typename VecT >
size_t store (std::ostream &_os, const VecT &_vec, GenProg::Int2Type< 1 >, bool _swap)
template<typename VecT >
size_t store (std::ostream &_os, const VecT &_vec, GenProg::Int2Type< 4 >, bool _swap)
template<typename VecT >
size_t store (std::ostream &_os, const VecT &_vec, GenProg::Int2Type< 3 >, bool _swap)
template<typename VecT >
size_t store (std::ostream &_os, const VecT &_vec, GenProg::Int2Type< 2 >, bool _swap)
template<typename T >
size_t store (std::ostream &_os, const T &_val, OMFormat::Chunk::Integer_Size _b, bool _swap)
 Store an integer with a wanted number of bits.
template<typename T >
size_t store (std::ostream &_os, const T &_val, OMFormat::Chunk::Integer_Size _b, bool _swap, t_signed)
template<>
size_t store (std::ostream &_os, const OMFormat::Chunk::Header &_hdr, bool _swap)
template<>
size_t store (std::ostream &_os, const OMFormat::Header &_hdr, bool _swap)
static const size_t UnknownSize (size_t(-1))
template<typename VecT >
size_t vector_restore (std::istream &_is, VecT &_vec, bool _swap)
 Restoring a vector type.
template<typename VecT >
size_t vector_store (std::ostream &_os, const VecT &_vec, bool _swap)
 storing a vector type
 VECTORTS_BINARY (6)
 VECTORTS_BINARY (4)
 VECTORTS_BINARY (3)
 VECTORTS_BINARY (2)
 VECTORTS_BINARY (1)
Mesh Reading / Writing

Option for reader and writer modules.

template<class Mesh >
size_t binary_size (const Mesh &_mesh, const std::string &_format, Options _opt=Options::Default)
template<class Mesh >
bool read_mesh (Mesh &_mesh, std::istream &_is, const std::string &_ext, Options &_opt, bool _clear=true)
template<class Mesh >
bool read_mesh (Mesh &_mesh, const std::string &_filename, Options &_opt, bool _clear=true)
template<class Mesh >
bool read_mesh (Mesh &_mesh, const std::string &_filename, bool _clear=true)
template<class Mesh >
bool write_mesh (const Mesh &_mesh, std::ostream &_os, const std::string &_ext, Options _opt=Options::Default)
template<class Mesh >
bool write_mesh (const Mesh &_mesh, const std::string &_filename, Options _opt=Options::Default)

Variables

_IOManager___IOManager_instance
_OBJReader_ __OBJReaderInstance
_OBJWriter_ __OBJWriterinstance
 Declare the single entity of the OBJ writer.
_OFFReader_ __OFFReaderInstance
 Declare the single entity of the OFF reader.
_OFFWriter_ __OFFWriterInstance
 Declare the single entity of the OFF writer.
_OMReader_ __OMReaderInstance
 Declare the single entity of the OM reader.
_OMWriter_ __OMWriterInstance
 Declare the single entity of the OM writer.
_PLYReader_ __PLYReaderInstance
 Declare the single entity of the PLY reader.
_PLYWriter_ __PLYWriterInstance
 Declare the single entity of the PLY writer.
_STLReader_ __STLReaderInstance
 Declare the single entity of the STL reader.
_STLWriter_ __STLWriterInstance

Handling binary input/output.

These functions take care of swapping bytes to get the right Endian.



typedef float float32_t
typedef double float64_t
typedef short int16_t
typedef int int32_t
typedef long long int64_t
typedef char int8_t
typedef uint8_t rgb_t [3]
typedef uint8_t rgba_t [4]
typedef unsigned char uchar
typedef unsigned short uint16_t
typedef unsigned int uint32_t
typedef unsigned long long uint64_t
typedef unsigned char uint8_t
typedef unsigned long ulong
typedef unsigned short ushort
template<size_t N>
void _reverse_byte_order_N (uint8_t *_val)
template<>
void _reverse_byte_order_N< 1 > (uint8_t *)
template<>
void _reverse_byte_order_N< 12 > (uint8_t *_val)
template<>
void _reverse_byte_order_N< 16 > (uint8_t *_val)
template<>
void _reverse_byte_order_N< 2 > (uint8_t *_val)
template<>
void _reverse_byte_order_N< 4 > (uint8_t *_val)
template<>
void _reverse_byte_order_N< 8 > (uint8_t *_val)
void compile_time_error__no_fundamental_type ()
template<typename T >
bool is_streamable (const T &)
template<typename T >
bool is_streamable (void)
double read_double (FILE *_in, bool _swap=false)
float read_float (FILE *_in, bool _swap=false)
int read_int (FILE *_in, bool _swap=false)
short int read_short (FILE *_in, bool _swap=false)
template<typename T >
size_t restore (std::istream &_is, T &_v, bool _swap=false)
template<typename T >
reverse_byte_order (const T &a)
template<>
ucharreverse_byte_order (uchar &_t)
template<>
char & reverse_byte_order (char &_t)
template<>
bool & reverse_byte_order (bool &_t)
template<typename T >
T & reverse_byte_order (T &_t)
template<typename T >
T * reverse_byte_order (T *t)
 REVERSE_FUNDAMENTAL_TYPE (long double)
 REVERSE_FUNDAMENTAL_TYPE (double)
 REVERSE_FUNDAMENTAL_TYPE (float)
 REVERSE_FUNDAMENTAL_TYPE (uint64_t)
 REVERSE_FUNDAMENTAL_TYPE (int64_t)
 REVERSE_FUNDAMENTAL_TYPE (uint32_t)
 REVERSE_FUNDAMENTAL_TYPE (int32_t)
 REVERSE_FUNDAMENTAL_TYPE (unsigned long)
 REVERSE_FUNDAMENTAL_TYPE (uint16_t)
 REVERSE_FUNDAMENTAL_TYPE (int16_t)
template<typename T >
size_t size_of (void)
template<typename T >
size_t size_of (const T &_v)
template<typename T >
size_t store (std::ostream &_os, const T &_v, bool _swap=false)
void write_double (double _d, FILE *_out, bool _swap=false)
void write_float (float _f, FILE *_out, bool _swap=false)
void write_int (int _i, FILE *_out, bool _swap=false)
void write_short (short int _i, FILE *_out, bool _swap=false)

Typedef Documentation

typedef float OpenMesh::IO::float32_t

Definition at line 90 of file SR_types.hh.

typedef double OpenMesh::IO::float64_t

Definition at line 91 of file SR_types.hh.

typedef short OpenMesh::IO::int16_t

Definition at line 79 of file SR_types.hh.

typedef int OpenMesh::IO::int32_t

Definition at line 83 of file SR_types.hh.

typedef long long OpenMesh::IO::int64_t

Definition at line 87 of file SR_types.hh.

typedef char OpenMesh::IO::int8_t

Definition at line 78 of file SR_types.hh.

Definition at line 93 of file SR_types.hh.

Definition at line 94 of file SR_types.hh.

Definition at line 484 of file OMFormat.hh.

Definition at line 485 of file OMFormat.hh.

typedef unsigned char OpenMesh::IO::uchar

Definition at line 74 of file SR_types.hh.

typedef unsigned short OpenMesh::IO::uint16_t

Definition at line 79 of file SR_types.hh.

typedef unsigned int OpenMesh::IO::uint32_t

Definition at line 83 of file SR_types.hh.

typedef unsigned long long OpenMesh::IO::uint64_t

Definition at line 87 of file SR_types.hh.

typedef unsigned char OpenMesh::IO::uint8_t

Definition at line 78 of file SR_types.hh.

typedef unsigned long OpenMesh::IO::ulong

Definition at line 76 of file SR_types.hh.

typedef unsigned short OpenMesh::IO::ushort

Definition at line 75 of file SR_types.hh.


Function Documentation

template<size_t N>
void OpenMesh::IO::_reverse_byte_order_N ( uint8_t *  _val  )  [inline]

this does not compile for g++3.4 and higher, hence we comment the function body which will result in a linker error

Definition at line 90 of file SR_rbo.hh.

template<>
void OpenMesh::IO::_reverse_byte_order_N< 1 > ( uint8_t *   )  [inline]
template<>
void OpenMesh::IO::_reverse_byte_order_N< 12 > ( uint8_t *  _val  )  [inline]
template<>
void OpenMesh::IO::_reverse_byte_order_N< 16 > ( uint8_t *  _val  )  [inline]
template<>
void OpenMesh::IO::_reverse_byte_order_N< 2 > ( uint8_t *  _val  )  [inline]

Definition at line 98 of file SR_rbo.hh.

template<>
void OpenMesh::IO::_reverse_byte_order_N< 4 > ( uint8_t *  _val  )  [inline]
template<>
void OpenMesh::IO::_reverse_byte_order_N< 8 > ( uint8_t *  _val  )  [inline]
template<class Mesh >
size_t OpenMesh::IO::binary_size ( const Mesh &  _mesh,
const std::string &  _format,
Options  _opt = Options::Default 
) [inline]

Definition at line 156 of file MeshIO.hh.

OpenMesh::IO::BINARY_VECTOR ( double   ) 
OpenMesh::IO::BINARY_VECTOR ( float   ) 
OpenMesh::IO::BINARY_VECTOR ( long   ) 
OpenMesh::IO::BINARY_VECTOR ( int   ) 
OpenMesh::IO::BINARY_VECTOR ( unsigned  short  ) 
OpenMesh::IO::BINARY_VECTOR ( short   ) 
void OpenMesh::IO::compile_time_error__no_fundamental_type (  )  [inline]

Definition at line 163 of file SR_rbo.hh.

_IOManager_& OpenMesh::IO::IOManager (  ) 
template<typename T >
bool OpenMesh::IO::is_streamable ( const T &   )  [inline]

Definition at line 82 of file StoreRestore.hh.

template<typename T >
bool OpenMesh::IO::is_streamable ( void   )  [inline]

Definition at line 78 of file StoreRestore.hh.

_OBJReader_& OpenMesh::IO::OBJReader (  ) 
_OBJWriter_& OpenMesh::IO::OBJWriter (  ) 
_OFFReader_& OpenMesh::IO::OFFReader (  ) 
_OFFWriter_& OpenMesh::IO::OFFWriter (  ) 
_OMReader_& OpenMesh::IO::OMReader (  ) 
_OMWriter_& OpenMesh::IO::OMWriter (  ) 
_PLYReader_& OpenMesh::IO::PLYReader (  ) 
_PLYWriter_& OpenMesh::IO::PLYWriter (  ) 
double OpenMesh::IO::read_double ( FILE *  _in,
bool  _swap = false 
)

Binary read a double from _is and perform byte swapping if _swap is true

float OpenMesh::IO::read_float ( FILE *  _in,
bool  _swap = false 
)

Binary read a float from _is and perform byte swapping if _swap is true

int OpenMesh::IO::read_int ( FILE *  _in,
bool  _swap = false 
)

Binary read an int from _is and perform byte swapping if _swap is true

template<class Mesh >
bool OpenMesh::IO::read_mesh ( Mesh &  _mesh,
std::istream &  _is,
const std::string &  _ext,
Options &  _opt,
bool  _clear = true 
) [inline]

Read a mesh from file open std::istream. The file format is determined by parameter _ext. _ext has to include ".[format]" in order to work properly

Definition at line 109 of file MeshIO.hh.

template<class Mesh >
bool OpenMesh::IO::read_mesh ( Mesh &  _mesh,
const std::string &  _filename,
Options &  _opt,
bool  _clear = true 
) [inline]

Read a mesh from file _filename. The file format is determined by the file extension.

Definition at line 94 of file MeshIO.hh.

template<class Mesh >
bool OpenMesh::IO::read_mesh ( Mesh &  _mesh,
const std::string &  _filename,
bool  _clear = true 
) [inline]

Read a mesh from file _filename. The file format is determined by the file extension.

Definition at line 81 of file MeshIO.hh.

short int OpenMesh::IO::read_short ( FILE *  _in,
bool  _swap = false 
)

Binary read a short from _is and perform byte swapping if _swap is true

template<typename T >
size_t OpenMesh::IO::restore ( std::istream &  _is,
T &  _v,
bool  _swap = false 
) [inline]

Definition at line 98 of file StoreRestore.hh.

template<>
size_t OpenMesh::IO::restore ( std::istream &  _is,
OMFormat::Chunk::PropertyName &  _pn,
bool  _swap 
) [inline]

Definition at line 681 of file OMFormat.hh.

template<typename VecT >
size_t OpenMesh::IO::restore ( std::istream &  _is,
VecT &  _vec,
GenProg::Int2Type< 1 >  ,
bool  _swap 
) [inline]

Definition at line 648 of file OMFormat.hh.

template<typename VecT >
size_t OpenMesh::IO::restore ( std::istream &  _is,
VecT &  _vec,
GenProg::Int2Type< 4 >  ,
bool  _swap 
) [inline]

Definition at line 632 of file OMFormat.hh.

template<typename VecT >
size_t OpenMesh::IO::restore ( std::istream &  _is,
VecT &  _vec,
GenProg::Int2Type< 3 >  ,
bool  _swap 
) [inline]

Definition at line 617 of file OMFormat.hh.

template<typename VecT >
size_t OpenMesh::IO::restore ( std::istream &  _is,
VecT &  _vec,
GenProg::Int2Type< 2 >  ,
bool  _swap 
) [inline]

Definition at line 606 of file OMFormat.hh.

template<typename T >
size_t OpenMesh::IO::restore ( std::istream &  _is,
T &  _val,
OMFormat::Chunk::Integer_Size  _b,
bool  _swap 
) [inline]

Restore an integer with a wanted number of bits.

Definition at line 541 of file OMFormat.hh.

template<typename T >
size_t OpenMesh::IO::restore ( std::istream &  _is,
T &  _val,
OMFormat::Chunk::Integer_Size  _b,
bool  _swap,
t_signed   
) [inline]

Definition at line 182 of file OMFormatT.cc.

template<>
size_t OpenMesh::IO::restore ( std::istream &  _is,
OMFormat::Chunk::Header &  _hdr,
bool  _swap 
) [inline]

Definition at line 472 of file OMFormat.hh.

template<>
size_t OpenMesh::IO::restore ( std::istream &  _is,
OMFormat::Header &  _hdr,
bool  _swap 
) [inline]

Definition at line 456 of file OMFormat.hh.

template<typename T >
T OpenMesh::IO::reverse_byte_order ( const T &  a  )  [inline]

Definition at line 242 of file SR_rbo.hh.

template<>
uchar& OpenMesh::IO::reverse_byte_order ( uchar &  _t  )  [inline]

Definition at line 183 of file SR_rbo.hh.

template<>
char& OpenMesh::IO::reverse_byte_order ( char &  _t  )  [inline]

Definition at line 179 of file SR_rbo.hh.

template<>
bool& OpenMesh::IO::reverse_byte_order ( bool &  _t  )  [inline]

Definition at line 178 of file SR_rbo.hh.

template<typename T >
T& OpenMesh::IO::reverse_byte_order ( T &  _t  )  [inline]

Definition at line 171 of file SR_rbo.hh.

template<typename T >
T* OpenMesh::IO::reverse_byte_order ( T *  t  )  [inline]

this does not compile for g++3.4 and higher, hence we comment the function body which will result in a linker error

Definition at line 153 of file SR_rbo.hh.

OpenMesh::IO::REVERSE_FUNDAMENTAL_TYPE ( long  double  ) 
OpenMesh::IO::REVERSE_FUNDAMENTAL_TYPE ( double   ) 
OpenMesh::IO::REVERSE_FUNDAMENTAL_TYPE ( float   ) 
OpenMesh::IO::REVERSE_FUNDAMENTAL_TYPE ( uint64_t   ) 
OpenMesh::IO::REVERSE_FUNDAMENTAL_TYPE ( int64_t   ) 
OpenMesh::IO::REVERSE_FUNDAMENTAL_TYPE ( uint32_t   ) 
OpenMesh::IO::REVERSE_FUNDAMENTAL_TYPE ( int32_t   ) 
OpenMesh::IO::REVERSE_FUNDAMENTAL_TYPE ( unsigned  long  ) 
OpenMesh::IO::REVERSE_FUNDAMENTAL_TYPE ( uint16_t   ) 
OpenMesh::IO::REVERSE_FUNDAMENTAL_TYPE ( int16_t   ) 
OpenMesh::IO::SIMPLE_BINARY ( unsigned  long  ) 
OpenMesh::IO::SIMPLE_BINARY ( uint64_t   ) 
OpenMesh::IO::SIMPLE_BINARY ( uint32_t   ) 
OpenMesh::IO::SIMPLE_BINARY ( uint16_t   ) 
OpenMesh::IO::SIMPLE_BINARY ( uint8_t   ) 
OpenMesh::IO::SIMPLE_BINARY ( int64_t   ) 
OpenMesh::IO::SIMPLE_BINARY ( int32_t   ) 
OpenMesh::IO::SIMPLE_BINARY ( int16_t   ) 
OpenMesh::IO::SIMPLE_BINARY ( int8_t   ) 
OpenMesh::IO::SIMPLE_BINARY ( long  double  ) 
OpenMesh::IO::SIMPLE_BINARY ( double   ) 
OpenMesh::IO::SIMPLE_BINARY ( float   ) 
OpenMesh::IO::SIMPLE_BINARY ( bool   ) 
template<typename T >
size_t OpenMesh::IO::size_of ( void   )  [inline]

Definition at line 90 of file StoreRestore.hh.

template<typename T >
size_t OpenMesh::IO::size_of ( const T &  _v  )  [inline]

Definition at line 86 of file StoreRestore.hh.

_STLReader_& OpenMesh::IO::STLReader (  ) 
_STLWriter_& OpenMesh::IO::STLWriter (  ) 
template<typename T >
size_t OpenMesh::IO::store ( std::ostream &  _os,
const T &  _v,
bool  _swap = false 
) [inline]

Definition at line 94 of file StoreRestore.hh.

template<>
size_t OpenMesh::IO::store ( std::ostream &  _os,
const OMFormat::Chunk::PropertyName &  _pn,
bool  _swap 
) [inline]

Definition at line 670 of file OMFormat.hh.

template<typename VecT >
size_t OpenMesh::IO::store ( std::ostream &  _os,
const VecT &  _vec,
GenProg::Int2Type< 1 >  ,
bool  _swap 
) [inline]

Definition at line 587 of file OMFormat.hh.

template<typename VecT >
size_t OpenMesh::IO::store ( std::ostream &  _os,
const VecT &  _vec,
GenProg::Int2Type< 4 >  ,
bool  _swap 
) [inline]

Definition at line 576 of file OMFormat.hh.

template<typename VecT >
size_t OpenMesh::IO::store ( std::ostream &  _os,
const VecT &  _vec,
GenProg::Int2Type< 3 >  ,
bool  _swap 
) [inline]

Definition at line 566 of file OMFormat.hh.

template<typename VecT >
size_t OpenMesh::IO::store ( std::ostream &  _os,
const VecT &  _vec,
GenProg::Int2Type< 2 >  ,
bool  _swap 
) [inline]

Definition at line 557 of file OMFormat.hh.

template<typename T >
size_t OpenMesh::IO::store ( std::ostream &  _os,
const T &  _val,
OMFormat::Chunk::Integer_Size  _b,
bool  _swap 
) [inline]

Store an integer with a wanted number of bits.

Definition at line 509 of file OMFormat.hh.

template<typename T >
size_t OpenMesh::IO::store ( std::ostream &  _os,
const T &  _val,
OMFormat::Chunk::Integer_Size  _b,
bool  _swap,
t_signed   
) [inline]

Definition at line 99 of file OMFormatT.cc.

template<>
size_t OpenMesh::IO::store ( std::ostream &  _os,
const OMFormat::Chunk::Header &  _hdr,
bool  _swap 
) [inline]

Definition at line 464 of file OMFormat.hh.

template<>
size_t OpenMesh::IO::store ( std::ostream &  _os,
const OMFormat::Header &  _hdr,
bool  _swap 
) [inline]

Definition at line 452 of file OMFormat.hh.

static const size_t OpenMesh::IO::UnknownSize ( size_t(-1)   )  [static]
template<typename VecT >
size_t OpenMesh::IO::vector_restore ( std::istream &  _is,
VecT &  _vec,
bool  _swap 
) [inline]

Restoring a vector type.

Definition at line 658 of file OMFormat.hh.

template<typename VecT >
size_t OpenMesh::IO::vector_store ( std::ostream &  _os,
const VecT &  _vec,
bool  _swap 
) [inline]

storing a vector type

Definition at line 595 of file OMFormat.hh.

OpenMesh::IO::VECTORTS_BINARY (  ) 
OpenMesh::IO::VECTORTS_BINARY (  ) 
OpenMesh::IO::VECTORTS_BINARY (  ) 
OpenMesh::IO::VECTORTS_BINARY (  ) 
OpenMesh::IO::VECTORTS_BINARY (  ) 
void OpenMesh::IO::write_double ( double  _d,
FILE *  _out,
bool  _swap = false 
)

Binary write a double to _os and perform byte swapping if _swap is true

void OpenMesh::IO::write_float ( float  _f,
FILE *  _out,
bool  _swap = false 
)

Binary write a float to _os and perform byte swapping if _swap is true

void OpenMesh::IO::write_int ( int  _i,
FILE *  _out,
bool  _swap = false 
)

Binary write an int to _os and perform byte swapping if _swap is true

template<class Mesh >
bool OpenMesh::IO::write_mesh ( const Mesh &  _mesh,
std::ostream &  _os,
const std::string &  _ext,
Options  _opt = Options::Default 
) [inline]

Write a mesh to an open std::ostream. The file format is determined by _ext.

Definition at line 142 of file MeshIO.hh.

template<class Mesh >
bool OpenMesh::IO::write_mesh ( const Mesh &  _mesh,
const std::string &  _filename,
Options  _opt = Options::Default 
) [inline]

Write a mesh to the file _filename. The file format is determined by _filename's extension.

Definition at line 128 of file MeshIO.hh.

void OpenMesh::IO::write_short ( short int  _i,
FILE *  _out,
bool  _swap = false 
)

Binary write a short to _os and perform byte swapping if _swap is true


Variable Documentation

Declare the single entity of the OBJ writer.

Declare the single entity of the OFF reader.

Declare the single entity of the OFF writer.

Declare the single entity of the OM reader.

Declare the single entity of the OM writer.

Declare the single entity of the PLY reader.

Declare the single entity of the PLY writer.

Declare the single entity of the STL reader.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


openmesh
Author(s): Benjamin Pitzer
autogenerated on Fri Jan 11 12:11:17 2013