Fixed some conversions in unittests
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@854 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -53,7 +53,7 @@ TEST_F(OpenMeshMixedDecimater, DecimateMesh80PercentMc) {
|
|||||||
removedVertices = decimaterDBG.decimate_to(5000,0.8f);
|
removedVertices = decimaterDBG.decimate_to(5000,0.8f);
|
||||||
decimaterDBG.mesh().garbage_collection();
|
decimaterDBG.mesh().garbage_collection();
|
||||||
|
|
||||||
EXPECT_EQ(2526, removedVertices) << "The number of remove vertices is not correct!";
|
EXPECT_EQ(2526u, removedVertices) << "The number of remove vertices is not correct!";
|
||||||
EXPECT_EQ(5000u, mesh_.n_vertices()) << "The number of vertices after decimation is not correct!";
|
EXPECT_EQ(5000u, mesh_.n_vertices()) << "The number of vertices after decimation is not correct!";
|
||||||
EXPECT_EQ(14994u, mesh_.n_edges()) << "The number of edges after decimation is not correct!";
|
EXPECT_EQ(14994u, mesh_.n_edges()) << "The number of edges after decimation is not correct!";
|
||||||
EXPECT_EQ(9996u, mesh_.n_faces()) << "The number of faces after decimation is not correct!";
|
EXPECT_EQ(9996u, mesh_.n_faces()) << "The number of faces after decimation is not correct!";
|
||||||
@@ -77,7 +77,7 @@ TEST_F(OpenMeshMixedDecimater, DecimateMeshToFaceVerticesLimit) {
|
|||||||
removedVertices = decimaterDBG.decimate_to_faces(5000, 8000, 0.7f);
|
removedVertices = decimaterDBG.decimate_to_faces(5000, 8000, 0.7f);
|
||||||
decimaterDBG.mesh().garbage_collection();
|
decimaterDBG.mesh().garbage_collection();
|
||||||
|
|
||||||
EXPECT_EQ(2526, removedVertices) << "The number of remove vertices is not correct!";
|
EXPECT_EQ(2526u, removedVertices) << "The number of remove vertices is not correct!";
|
||||||
EXPECT_EQ(5000u, mesh_.n_vertices()) << "The number of vertices after decimation is not correct!";
|
EXPECT_EQ(5000u, mesh_.n_vertices()) << "The number of vertices after decimation is not correct!";
|
||||||
EXPECT_EQ(14994u, mesh_.n_edges()) << "The number of edges after decimation is not correct!";
|
EXPECT_EQ(14994u, mesh_.n_edges()) << "The number of edges after decimation is not correct!";
|
||||||
EXPECT_EQ(9996u, mesh_.n_faces()) << "The number of faces after decimation is not correct!";
|
EXPECT_EQ(9996u, mesh_.n_faces()) << "The number of faces after decimation is not correct!";
|
||||||
@@ -101,7 +101,7 @@ TEST_F(OpenMeshMixedDecimater, DecimateMeshToFaceFaceLimit) {
|
|||||||
removedVertices = decimaterDBG.decimate_to_faces(4500, 9996, 0.7f);
|
removedVertices = decimaterDBG.decimate_to_faces(4500, 9996, 0.7f);
|
||||||
decimaterDBG.mesh().garbage_collection();
|
decimaterDBG.mesh().garbage_collection();
|
||||||
|
|
||||||
EXPECT_EQ(2526, removedVertices) << "The number of remove vertices is not correct!";
|
EXPECT_EQ(2526u, removedVertices) << "The number of remove vertices is not correct!";
|
||||||
EXPECT_EQ(5000u, mesh_.n_vertices()) << "The number of vertices after decimation is not correct!";
|
EXPECT_EQ(5000u, mesh_.n_vertices()) << "The number of vertices after decimation is not correct!";
|
||||||
EXPECT_EQ(14994u, mesh_.n_edges()) << "The number of edges after decimation is not correct!";
|
EXPECT_EQ(14994u, mesh_.n_edges()) << "The number of edges after decimation is not correct!";
|
||||||
EXPECT_EQ(9996u, mesh_.n_faces()) << "The number of faces after decimation is not correct!";
|
EXPECT_EQ(9996u, mesh_.n_faces()) << "The number of faces after decimation is not correct!";
|
||||||
|
|||||||
Reference in New Issue
Block a user