Commit ca994b01 authored by Mike Kremer's avatar Mike Kremer

Changed unit test for file reader

git-svn-id: http://www.openvolumemesh.org/svnrepo/OpenVolumeMesh/trunk@61 66977474-1d4b-4f09-8fe9-267525286df2
parent 8e84a316
......@@ -713,7 +713,8 @@ EXCLUDE_SYMBOLS =
# directories that contain example code fragments that are included (see
# the \include command).
EXAMPLE_PATH = tutorials
EXAMPLE_PATH = tutorials \
examples
# If the value of the EXAMPLE_PATH tag contains directories, you can use the
# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
......@@ -722,7 +723,8 @@ EXAMPLE_PATH = tutorials
EXAMPLE_PATTERNS = *.cc \
*.hh \
*.txt
*.txt \
*.ovm
# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
# searched for input files to be used with the \include or \dontinclude
......
......@@ -716,7 +716,8 @@ EXCLUDE_SYMBOLS =
# directories that contain example code fragments that are included (see
# the \include command).
EXAMPLE_PATH = @CMAKE_CURRENT_SOURCE_DIR@/tutorials
EXAMPLE_PATH = @CMAKE_CURRENT_SOURCE_DIR@/tutorials \
@CMAKE_CURRENT_SOURCE_DIR@/examples
# If the value of the EXAMPLE_PATH tag contains directories, you can use the
# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
......@@ -725,7 +726,8 @@ EXAMPLE_PATH = @CMAKE_CURRENT_SOURCE_DIR@/tutorials
EXAMPLE_PATTERNS = *.cc \
*.hh \
*.txt
*.txt \
*.ovm
# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
# searched for input files to be used with the \include or \dontinclude
......
OVM ASCII
Vertices
8
-1.0 -1.0 -1.0
1.0 -1.0 -1.0
1.0 1.0 -1.0
-1.0 1.0 -1.0
-1.0 -1.0 1.0
1.0 -1.0 1.0
1.0 1.0 1.0
-1.0 1.0 1.0
Vertex_Property "Vertex Weights"
float
1.363
6.334
2.766
8.348
4.214
2.136
7.114
0.651
Edges
12
0 1
1 2
2 3
3 0
4 5
5 6
6 7
7 4
0 4
1 5
2 6
3 7
Edge_Property "Edge Tag"
bool
1
1
0
1
1
0
0
1
0
0
1
1
Faces
6
4 0 2 4 6
4 8 10 12 14
4 18 10 21 3
4 16 15 23 6
4 20 12 23 5
4 0 18 9 17
Face_Property "Face Selection"
bool
1
1
0
1
1
0
HalfFace_Property "HalfFace Constraints"
double
1.22354
0.11698
1.83562
0.19378
0.23567
1.23565
1.23567
0.95874
0.43532
2.22457
0.10957
1.09758
Polyhedra
1
6 1 2 5 6 9 10
......@@ -13,6 +13,7 @@ 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
......@@ -63,67 +64,6 @@ Polyhedron_Property "name" # The same as for vertices
\section file_example A Simple Example File
\verbatim
OVM ASCII
Vertices
8
-1.0 -1.0 -1.0
1.0 -1.0 -1.0
1.0 1.0 -1.0
-1.0 1.0 -1.0
-1.0 -1.0 1.0
1.0 -1.0 1.0
1.0 1.0 1.0
-1.0 1.0 1.0
Property "Vertex Weights"
float
1.363
6.334
2.766
8.348
4.214
2.136
7.114
0.651
Edges
12
0 1
1 2
2 3
3 0
4 5
5 6
6 7
7 4
0 4
1 5
2 6
3 7
Property "Edge Tag"
bool
1
1
0
1
1
0
0
1
0
0
1
1
Faces
6
4 0 2 4 6
4 8 10 12 14
4 18 10 21 3
4 16 15 23 6
4 20 12 22 4
4 0 18 9 17
Polyhedra
1
6 1 2 5 6 9 10
\endverbatim
\include Cube_with_props.ovm
**/
......@@ -55,6 +55,28 @@ Faces
4 16 15 23 6
4 20 12 23 5
4 0 18 9 17
Face_Property "Face Selection"
bool
1
1
0
1
1
0
HalfFace_Property "HalfFace Constraints"
double
1.22354
0.11698
1.83562
0.19378
0.23567
1.23565
1.23567
0.95874
0.43532
2.22457
0.10957
1.09758
Polyhedra
1
6 1 2 5 6 9 10
......@@ -44,7 +44,9 @@ TEST_F(PolyhedralMeshBase, LoadFileWithProps) {
EXPECT_EQ(1u, mesh_.n_vprops());
EXPECT_EQ(1u, mesh_.n_eprops());
EXPECT_EQ(0u, mesh_.n_fprops());
EXPECT_EQ(0u, mesh_.n_heprops());
EXPECT_EQ(1u, mesh_.n_fprops());
EXPECT_EQ(1u, mesh_.n_hfprops());
EXPECT_EQ(0u, mesh_.n_cprops());
}
......
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