vtf-logo

File I/O for IndSimpSet


Functions

template<int N, int M, typename VertForIter, typename ISForIter>
void geom::writeIssAscii (std::ostream &out, VertForIter verticesBeginning, VertForIter verticesEnd, ISForIter indexedSimplicesBeginning, ISForIter indexedSimplicesEnd)
 Write an indexed simplex set in ascii format.
template<int N, int M, typename VertForIter, typename ISForIter>
void geom::writeIssBinary (std::ostream &out, VertForIter verticesBeginning, VertForIter verticesEnd, ISForIter indexedSimplicesBeginning, ISForIter indexedSimplicesEnd)
 Write an indexed simplex set in binary format.
template<int N, int M, typename VertForIter, typename ISForIter, typename ContainerIter, typename StringIter>
void geom::writeIssAndCellDataVtkXml (std::ostream &out, VertForIter verticesBeginning, VertForIter verticesEnd, ISForIter indexedSimplicesBeginning, ISForIter indexedSimplicesEnd, ContainerIter cellDataContainersBeginning, ContainerIter cellDataContainersEnd, StringIter dataNamesBeginning, StringIter dataNamesEnd)
 Write in VTK XML unstructured grid format with a cell field.
template<int N, int M, typename VertForIter, typename ISForIter>
void geom::writeIssVtkXml (std::ostream &out, VertForIter verticesBeginning, VertForIter verticesEnd, ISForIter indexedSimplicesBeginning, ISForIter indexedSimplicesEnd)
 Write in VTK XML unstructured grid format.
template<int N, int M, typename VertForIter, typename ISForIter>
void geom::writeIssVtkLegacy (std::ostream &out, VertForIter verticesBeginning, VertForIter verticesEnd, ISForIter indexedSimplicesBeginning, ISForIter indexedSimplicesEnd, std::string title="")
 Write in legacy VTK unstructured grid format.
void geom::IndSimpSet::writeAscii (std::ostream &out, const IndSimpSet< N, M, A, T, V, IS > &x)
 Write an indexed simplex set in ascii format.
void geom::IndSimpSet::writeBinary (std::ostream &out, const IndSimpSet< N, M, A, T, V, IS > &x)
 Write an indexed simplex set in binary format.
void geom::IndSimpSet::readAscii (std::istream &in, IndSimpSet< N, M, true, T, V, IS > *x)
 Read an indexed simplex set in ascii format.
void geom::IndSimpSet::readBinary (std::istream &in, IndSimpSet< N, M, true, T, V, IS > *x)
 Read an indexed simplex set in binary format.
void geom::IndSimpSet::writeVtkXml (std::ostream &out, const IndSimpSet< N, M, A, T, V, IS > &x)
 Write in VTK XML unstructured grid format.
void geom::IndSimpSet::writeVtkXml (std::ostream &out, const IndSimpSet< N, M, A, T, V, IS > &x, const ads::Array< 1, F, A2 > &cellData, std::string dataName)
 Write the mesh and the cell data in VTK XML unstructured grid format.
void geom::IndSimpSet::writeVtkXml (std::ostream &out, const IndSimpSet< N, M, A, T, V, IS > &x, ContainerIter cellDataContainersBeginning, ContainerIter cellDataContainersEnd, StringIter dataNamesBeginning, StringIter dataNamesEnd)
 Write the mesh and the cell data in VTK XML unstructured grid format.
void geom::IndSimpSet::writeVtkLegacy (std::ostream &out, const IndSimpSet< N, M, A, T, V, IS > &x, std::string title="")
 Write in legacy VTK unstructured grid format.

Detailed Description

An indexed simplex set can be written to a file in ascii or binary format. In addition, it can be exported to VTK XML or VTK legacy format.

For ascii and binary files, the first two numbers identify the space dimension and the simplex dimension. Then the vertex coordinates are enumerated, followed by the tuples of vertex indices that comprise the simplices. These indices are in the range [0..numberOfVertices). The file format is:

  spaceDimension simplexDimension
  numberOfVertices 
  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
  ...
  numberOfSimplices
  simplex_0_index_0 simplex_0_index_1 ... simplex_0_index_M
  simplex_1_index_0 simplex_1_index_1 ... simplex_1_index_M
  ..
  

For example, the boundary of the unit square in 2-D is:

  2 1
  4
  0.0 0.0
  1.0 0.0
  1.0 1.0
  0.0 1.0
  4
  0 1
  1 2
  2 3
  3 0
  

A triangle mesh of the unit square is:

  2 2
  4
  0.0 0.0
  1.0 0.0
  1.0 1.0
  0.0 1.0
  2
  0 1 2
  0 2 3
  

Generated on Fri Aug 24 12:56:00 2007 for Computational Geometry Package by  doxygen 1.4.7