Implements file I/O operations for SimpMeshRed. More...
#include "SimpMeshRed.h"
#include "../iss/file_io.h"
#include <string>
#include "file_io.ipp"
Go to the source code of this file.
Functions | |
template<int N, int M, typename T , template< class > class Node, template< class > class Cell, template< class, class > class Cont> | |
BEGIN_NAMESPACE_GEOM void | writeAscii (std::ostream &out, const SimpMeshRed< N, M, T, Node, Cell, Cont > &x) |
Write a mesh as an indexed simplex set in ascii format. | |
template<int N, int M, typename T , template< class > class Node, template< class > class Cell, template< class, class > class Cont> | |
void | print (std::ostream &out, const SimpMeshRed< N, M, T, Node, Cell, Cont > &x) |
Print detailed information about the mesh. | |
template<int N, int M, typename T , template< class > class Node, template< class > class Cell, template< class, class > class Cont> | |
void | writeBinary (std::ostream &out, const SimpMeshRed< N, M, T, Node, Cell, Cont > &x) |
Write a mesh as an indexed simplex set in binary format. | |
template<int N, int M, typename T , template< class > class Node, template< class > class Cell, template< class, class > class Cont> | |
void | readAscii (std::istream &in, SimpMeshRed< N, M, T, Node, Cell, Cont > *x) |
Read a mesh as an indexed simplex set in ascii format. | |
template<int N, int M, typename T , template< class > class Node, template< class > class Cell, template< class, class > class Cont> | |
void | readBinary (std::istream &in, SimpMeshRed< N, M, T, Node, Cell, Cont > *x) |
Read an indexed simplex set in binary format. | |
template<int N, int M, typename T , template< class > class Node, template< class > class Cell, template< class, class > class Cont> | |
void | writeVtkXml (std::ostream &out, const SimpMeshRed< N, M, T, Node, Cell, Cont > &x) |
Write in VTK XML unstructured grid format. | |
template<int N, int M, typename T , template< class > class Node, template< class > class Cell, template< class, class > class Cont> | |
void | writeVtkLegacy (std::ostream &out, const SimpMeshRed< N, M, T, Node, Cell, Cont > &x, std::string title="") |
Write in legacy VTK unstructured grid format. |
Implements file I/O operations for SimpMeshRed.
BEGIN_NAMESPACE_GEOM void writeAscii | ( | std::ostream & | out, | |
const SimpMeshRed< N, M, T, Node, Cell, Cont > & | x | |||
) | [inline] |
Write a mesh as an indexed simplex set in ascii format.
First the space dimension and the simplex dimension are written. Then the vertex coordinates are written, followed by the tuples of vertex indices that comprise the simplices. The file format is:
space_dimension simplex_dimension num_vertices vertex_0_coord_0 vertex_0_coord_1 ... vertex_0_coord_N-1 vertex_1_coord_0 vertex_1_coord_1 ... vertex_1_coord_N-1 ... num_simplices simplex_0_index_0 simplex_0_index_1 ... simplex_0_index_M simplex_1_index_0 simplex_1_index_1 ... simplex_1_index_M ..