cpe::mesh_io_off Class Reference

Helper class to load/save off file. More...

List of all members.

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.

Detailed Description

Helper class to load/save off file.

An un-official TOFF support is provided for per-vertex texture manipulation


Member Function Documentation

mesh cpe::mesh_io_off::load_mesh_io_off ( const std::string &  filename  )  [static]

Load off file.

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

Here is the call graph for this function:

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.

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

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Fri Aug 19 14:45:33 2011 by  doxygen 1.6.3