Helper class to load/save off file. More...
Static Public Member Functions | |
static mesh | load_mesh_io_off (const std::string &filename) |
Load off file. | |
static void | save_mesh_io_off (const std::string &filename, const mesh &m, const bool &is_toof=false) |
Save off file. |
Helper class to load/save off file.
An un-official TOFF support is provided for per-vertex texture manipulation
mesh cpe::mesh_io_off::load_mesh_io_off | ( | const std::string & | filename | ) | [static] |
Load off file.
std::string | filename: pathname to the mesh file |
References counter, cpe::string_converter::delete_empty(), cpe::mesh::get_texture(), and cpe::string_tokenizer::tokenize().
Referenced by cpe::mesh::load_off_file().
void cpe::mesh_io_off::save_mesh_io_off | ( | const std::string & | filename, | |
const mesh & | m, | |||
const bool & | is_toof = false | |||
) | [static] |
Save off file.
std::string | filename: the exported file | |
mesh | m: the mesh to save | |
bool | is_toof: save in toff format when texture is active (default: false) |
References cpe::mesh::get_connectivity(), cpe::mesh::get_texture(), cpe::mesh::get_texture_tx(), cpe::mesh::get_texture_ty(), cpe::mesh::get_vertex(), cpe::mesh::triangle_number(), and cpe::mesh::vertex_number().
Referenced by cpe::mesh::save_off_file().