Commit c98de028 authored by Jan Möbius's avatar Jan Möbius

Added unittest to check ply reader

parent f2d07dc9
This diff is collapsed.
......@@ -81,6 +81,23 @@ TEST_F(OpenMeshReadWritePLY, LoadSimplePLY) {
* Just load a ply
TEST_F(OpenMeshReadWritePLY, LoadSimplePLYNoEndl) {
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
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