Commit 8e84a316 authored by Mike Kremer's avatar Mike Kremer

Changed file format specs.

git-svn-id: http://www.openvolumemesh.org/svnrepo/OpenVolumeMesh/trunk@60 66977474-1d4b-4f09-8fe9-267525286df2
parent bfab09e5
......@@ -14,47 +14,51 @@ file format specification below.
\section file_spec File Format Specification
\verbatim
OVM ASCII # File header indicating whether data is
# coded as plain text or binary
Vertices # Indicate that all vertices are listed below
n_v # The total number of vertices (>= 0)
x_1 y_1 z_1 # Coordinate of the first vertex
OVM ASCII # File header indicating whether data is
# coded as plain text or binary
Vertices # Indicate that all vertices are listed below
n_v # The total number of vertices (>= 0)
x_1 y_1 z_1 # Coordinate of the first vertex
...
x_n y_n z_n # Coordinate of the n_v'th vertex
# == Optional: ========================
Property "name" # A vertex property's name
type # The property's data type: Only integral
# types (bool, int, float, double, string)
p_1 # Property value for the first vertex
x_n y_n z_n # Coordinate of the n_v'th vertex
# == Optional: ========================
Vertex_Property "name" # A vertex property's name
type # The property's data type: Only integral
# types (bool, int, float, double, string)
p_1 # Property value for the first vertex
...
p_n # Property value for the last vertex
# Other properties may follow using
# the same scheme
# =====================================
Edges # Indicate that edges are specified below
n_e # The total number of edges (>= 0)
vs_1 vt_1 # First edge's source vertex index followed
... # by the first edge's target vertex index
vs_n vt_n # Last edge's source and target vertices
# == Optional: ========================
Property "name" # The same as for vertices
... # =====================================
Faces # Indicate that faces are specified below
n_f # The total number of faces (>= 0)
d he1_1 ... hed_1 # The first face's valence followed by its
... # incident half-edges' indices
d he1_n ... hed_n # Last face's definition
# == Optional: ========================
Property "name" # The same as for vertices
... # =====================================
Polyhedra # Indicates that polyhedra are specified below
n_c # The total number of cells (>= 0)
d hf1_1 ... hfd_1 # The first polyhedron's valence followed
... # by its incident half-faces' indices
d hf1_n ... hfd_n # The last polyhedron's definition
# == Optional: ========================
Property "name" # The same as for vertices
... # =====================================
p_n # Property value for the last vertex
# Other properties may follow using
# the same scheme
# =====================================
Edges # Indicate that edges are specified below
n_e # The total number of edges (>= 0)
vs_1 vt_1 # First edge's source vertex index followed
... # by the first edge's target vertex index
vs_n vt_n # Last edge's source and target vertices
# == Optional: ========================
Edge_Property "name" # The same as for vertices
... # == Optional: ========================
HalfEdge_Property "name" # The same as for vertices
... # =====================================
Faces # Indicate that faces are specified below
n_f # The total number of faces (>= 0)
d he1_1 ... hed_1 # The first face's valence followed by its
... # incident half-edges' indices
d he1_n ... hed_n # Last face's definition
# == Optional: ========================
Face_Property "name" # The same as for vertices
... # == Optional: ========================
HalfFace_Property "name" # The same as for vertices
... # =====================================
Polyhedra # Indicates that polyhedra are specified below
n_c # The total number of cells (>= 0)
d hf1_1 ... hfd_1 # The first polyhedron's valence followed
... # by its incident half-faces' indices
d hf1_n ... hfd_n # The last polyhedron's definition
# == Optional: ========================
Polyhedron_Property "name" # The same as for vertices
... # =====================================
\endverbatim
\section file_example A Simple Example File
......
......@@ -358,7 +358,7 @@ bool FileManager::readFile(const std::string& _filename, MeshT& _mesh,
sstr.str(line);
parseCellProperties<MeshT, typename MeshT::CellIter>
(iff, sstr, "CELL_PROPERTY", _mesh, _mesh.cells_begin(), _mesh.cells_end());
(iff, sstr, "POLYHEDRON_PROPERTY", _mesh, _mesh.cells_begin(), _mesh.cells_end());
}
iff.close();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment