libigl v2.5.0
Loading...
Searching...
No Matches
igl::MshSaver Class Reference

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< FloatFloatVector
 
typedef std::vector< FloatVectorFloatField
 
typedef std::vector< IntVectorIntField
 
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)
 

Detailed Description

Class for dumping information to .msh file depends only on c++stl library current implementation works only with 3D information.

Member Typedef Documentation

◆ Float

typedef double igl::MshSaver::Float

◆ IndexVector

typedef std::vector<int> igl::MshSaver::IndexVector

◆ IntVector

typedef std::vector<int> igl::MshSaver::IntVector

◆ FloatVector

typedef std::vector<Float> igl::MshSaver::FloatVector

◆ FloatField

typedef std::vector<FloatVector> igl::MshSaver::FloatField

◆ IntField

typedef std::vector<IntVector> igl::MshSaver::IntField

◆ FieldNames

typedef std::vector<std::string> igl::MshSaver::FieldNames

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ELEMENT_LINE 
ELEMENT_TRI 
ELEMENT_QUAD 
ELEMENT_TET 
ELEMENT_HEX 
ELEMENT_PRISM 

Constructor & Destructor Documentation

◆ MshSaver()

igl::MshSaver::MshSaver ( const std::string &  filename,
bool  binary = true 
)

Write a .msh to a given path.

Parameters
[in]filenamepath to output file
[in]binarywhether to write in binary format

◆ ~MshSaver()

igl::MshSaver::~MshSaver ( )

Member Function Documentation

◆ save_mesh()

void igl::MshSaver::save_mesh ( const FloatVector nodes,
const IndexVector elements,
const IntVector element_lengths,
const IntVector element_type,
const IntVector element_tags 
)

◆ save_scalar_field()

void igl::MshSaver::save_scalar_field ( const std::string &  fieldname,
const FloatVector field 
)

◆ save_vector_field()

void igl::MshSaver::save_vector_field ( const std::string &  fieldname,
const FloatVector field 
)

◆ save_elem_scalar_field()

void igl::MshSaver::save_elem_scalar_field ( const std::string &  fieldname,
const FloatVector field 
)

◆ save_elem_vector_field()

void igl::MshSaver::save_elem_vector_field ( const std::string &  fieldname,
const FloatVector field 
)

◆ save_elem_tensor_field()

void igl::MshSaver::save_elem_tensor_field ( const std::string &  fieldname,
const FloatVector field 
)

◆ save_header()

void igl::MshSaver::save_header ( )
protected

◆ save_nodes()

void igl::MshSaver::save_nodes ( const FloatVector nodes)
protected

◆ save_elements()

void igl::MshSaver::save_elements ( const IndexVector elements,
const IntVector element_lengths,
const IntVector element_type,
const IntVector element_tags 
)
protected

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