libigl v2.5.0
|
Class for dumping information to .msh file depends only on c++stl library current implementation works only with 3D information. More...
#include <MshSaver.h>
Public Types | |
enum | { ELEMENT_LINE =1 , ELEMENT_TRI =2 , ELEMENT_QUAD =3 , ELEMENT_TET =4 , ELEMENT_HEX =5 , ELEMENT_PRISM =6 } |
typedef double | Float |
typedef std::vector< int > | IndexVector |
typedef std::vector< int > | IntVector |
typedef std::vector< Float > | FloatVector |
typedef std::vector< FloatVector > | FloatField |
typedef std::vector< IntVector > | IntField |
typedef std::vector< std::string > | FieldNames |
Public Member Functions | |
MshSaver (const std::string &filename, bool binary=true) | |
Write a .msh to a given path. | |
~MshSaver () | |
void | save_mesh (const FloatVector &nodes, const IndexVector &elements, const IntVector &element_lengths, const IntVector &element_type, const IntVector &element_tags) |
void | save_scalar_field (const std::string &fieldname, const FloatVector &field) |
void | save_vector_field (const std::string &fieldname, const FloatVector &field) |
void | save_elem_scalar_field (const std::string &fieldname, const FloatVector &field) |
void | save_elem_vector_field (const std::string &fieldname, const FloatVector &field) |
void | save_elem_tensor_field (const std::string &fieldname, const FloatVector &field) |
Protected Member Functions | |
void | save_header () |
void | save_nodes (const FloatVector &nodes) |
void | save_elements (const IndexVector &elements, const IntVector &element_lengths, const IntVector &element_type, const IntVector &element_tags) |
Class for dumping information to .msh file depends only on c++stl library current implementation works only with 3D information.
typedef double igl::MshSaver::Float |
typedef std::vector<int> igl::MshSaver::IndexVector |
typedef std::vector<int> igl::MshSaver::IntVector |
typedef std::vector<Float> igl::MshSaver::FloatVector |
typedef std::vector<FloatVector> igl::MshSaver::FloatField |
typedef std::vector<IntVector> igl::MshSaver::IntField |
typedef std::vector<std::string> igl::MshSaver::FieldNames |
anonymous enum |
igl::MshSaver::MshSaver | ( | const std::string & | filename, |
bool | binary = true |
||
) |
Write a .msh to a given path.
[in] | filename | path to output file |
[in] | binary | whether to write in binary format |
igl::MshSaver::~MshSaver | ( | ) |
void igl::MshSaver::save_mesh | ( | const FloatVector & | nodes, |
const IndexVector & | elements, | ||
const IntVector & | element_lengths, | ||
const IntVector & | element_type, | ||
const IntVector & | element_tags | ||
) |
void igl::MshSaver::save_scalar_field | ( | const std::string & | fieldname, |
const FloatVector & | field | ||
) |
void igl::MshSaver::save_vector_field | ( | const std::string & | fieldname, |
const FloatVector & | field | ||
) |
void igl::MshSaver::save_elem_scalar_field | ( | const std::string & | fieldname, |
const FloatVector & | field | ||
) |
void igl::MshSaver::save_elem_vector_field | ( | const std::string & | fieldname, |
const FloatVector & | field | ||
) |
void igl::MshSaver::save_elem_tensor_field | ( | const std::string & | fieldname, |
const FloatVector & | field | ||
) |
|
protected |
|
protected |
|
protected |