mesh_conv::MC_io_off Class Reference

Helper class to read and write mesh in a off format (triangulation only). More...

List of all members.

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

Detailed Description

Helper class to read and write mesh in a off format (triangulation only).


Member Function Documentation

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

Returns:
<point_set,connectivity>

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().

Here is the call graph for this function:

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

Returns:
<point_set,connectivity>

References read_off().

Referenced by cpe_mesh::mesh::load_off_file().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:


The documentation for this class was generated from the following files:

Generated on Wed Nov 11 17:13:49 2009 by  doxygen 1.6.1