Added unittest to check ply reader

This commit is contained in:
Jan Möbius
2019-02-04 08:45:12 +01:00
parent f2d07dc943
commit c98de02846
2 changed files with 1288 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -81,6 +81,23 @@ TEST_F(OpenMeshReadWritePLY, LoadSimplePLY) {
} }
/*
* Just load a ply
*/
TEST_F(OpenMeshReadWritePLY, LoadSimplePLYNoEndl) {
mesh_.clear();
bool ok = OpenMesh::IO::read_mesh(mesh_, "sphere840.ply");
EXPECT_TRUE(ok) << "Unable to load sphere840.ply";
EXPECT_EQ(422u , mesh_.n_vertices()) << "The number of loaded vertices is not correct!";
EXPECT_EQ(1260u , mesh_.n_edges()) << "The number of loaded edges is not correct!";
EXPECT_EQ(840u , mesh_.n_faces()) << "The number of loaded faces is not correct!";
}
/* /*
* Just load a ply file and set vertex color option before loading * Just load a ply file and set vertex color option before loading
*/ */