10#define IGL_MSH_SAVER_H
36 MshSaver(
const std::string& filename,
bool binary=
true);
77 size_t m_num_elements;
83#ifndef IGL_STATIC_LIBRARY
84# include "MshSaver.cpp"
Class for dumping information to .msh file depends only on c++stl library current implementation work...
Definition MshSaver.h:22
void save_vector_field(const std::string &fieldname, const FloatVector &field)
@ ELEMENT_PRISM
Definition MshSaver.h:42
@ ELEMENT_HEX
Definition MshSaver.h:42
@ ELEMENT_TET
Definition MshSaver.h:42
@ ELEMENT_TRI
Definition MshSaver.h:41
@ ELEMENT_LINE
Definition MshSaver.h:41
@ ELEMENT_QUAD
Definition MshSaver.h:41
std::vector< int > IntVector
Definition MshSaver.h:27
std::vector< std::string > FieldNames
Definition MshSaver.h:31
MshSaver(const std::string &filename, bool binary=true)
Write a .msh to a given path.
double Float
Definition MshSaver.h:24
void save_nodes(const FloatVector &nodes)
void save_elem_scalar_field(const std::string &fieldname, const FloatVector &field)
void save_elem_tensor_field(const std::string &fieldname, const FloatVector &field)
std::vector< FloatVector > FloatField
Definition MshSaver.h:29
void save_mesh(const FloatVector &nodes, const IndexVector &elements, const IntVector &element_lengths, const IntVector &element_type, const IntVector &element_tags)
std::vector< int > IndexVector
Definition MshSaver.h:26
void save_scalar_field(const std::string &fieldname, const FloatVector &field)
std::vector< Float > FloatVector
Definition MshSaver.h:28
void save_elements(const IndexVector &elements, const IntVector &element_lengths, const IntVector &element_type, const IntVector &element_tags)
std::vector< IntVector > IntField
Definition MshSaver.h:30
void save_elem_vector_field(const std::string &fieldname, const FloatVector &field)