Helper class to read and write mesh in a off format (triangulation only). More...
Static Public Member Functions | |
static std::pair< std::vector < double >, std::vector< int > > | read_off (std::istream &stream) |
read an input stream in a off format | |
static std::pair< std::vector < double >, std::vector< int > > | read_off_file (const std::string &string_file) |
read an input file in a off format | |
static std::ostream & | write_off (std::ostream &stream, const std::vector< double > &vertex, const std::vector< int > &connectivity) |
write input stream in off format | |
static void | write_off_file (const std::string &string_file, const std::vector< double > &vertex, const std::vector< int > &connectivity) |
write input stream into a file |
Helper class to read and write mesh in a off format (triangulation only).
std::pair< std::vector< double >, std::vector< int > > mesh_conv::MC_io_off::read_off | ( | std::istream & | stream | ) | [static] |
read an input stream in a off format
References mesh_conv::MC_int_vector::add(), counter, mesh_conv::MC_int_vector::size(), and mesh_conv::MC_string_tokenizer::tokenize().
Referenced by read_off_file().
std::pair< std::vector< double >, std::vector< int > > mesh_conv::MC_io_off::read_off_file | ( | const std::string & | string_file | ) | [static] |
read an input file in a off format
References read_off().
Referenced by cpe_mesh::mesh::load_off_file().
std::ostream & mesh_conv::MC_io_off::write_off | ( | std::ostream & | stream, | |
const std::vector< double > & | vertex, | |||
const std::vector< int > & | connectivity | |||
) | [static] |
write input stream in off format
References mesh_conv::MC_int_vector::size().
Referenced by write_off_file().
void mesh_conv::MC_io_off::write_off_file | ( | const std::string & | string_file, | |
const std::vector< double > & | vertex, | |||
const std::vector< int > & | connectivity | |||
) | [static] |
write input stream into a file
References write_off().
Referenced by cpe_mesh::mesh::save_off_file().