2 #include <gtest/gtest.h>
3 #include <Unittests/unittests_common.hh>
13 virtual void SetUp() {
19 virtual void TearDown() {
33 virtual void SetUp() {
39 virtual void TearDown() {
56 TEST_F(OpenMeshSmoother_Triangle, Smoother_Poly_Laplace) {
66 EXPECT_EQ(7526u, mesh_.n_vertices() ) <<
"Wrong number of vertices";
67 EXPECT_EQ(15048u, mesh_.n_faces() ) <<
"Wrong number of faces";
74 smoother.set_absolute_local_error(0.5f);
77 smoother.set_relative_local_error(0.1f);
83 EXPECT_EQ(7526u, mesh_.n_vertices() ) <<
"Wrong number of vertices after smoothing?";
84 EXPECT_EQ(15048u, mesh_.n_faces() ) <<
"Wrong number of faces after smoothing?";
96 TEST_F(OpenMeshSmoother_Poly, Smoother_Triangle_Laplace) {
106 EXPECT_EQ(7526u, mesh_.n_vertices() ) <<
"Wrong number of vertices";
107 EXPECT_EQ(15048u, mesh_.n_faces() ) <<
"Wrong number of faces";
114 smoother.set_absolute_local_error(0.5);
117 smoother.set_relative_local_error(0.1);
123 EXPECT_EQ(7526u, mesh_.n_vertices() ) <<
"Wrong number of vertices after smoothing?";
124 EXPECT_EQ(15048u, mesh_.n_faces() ) <<
"Wrong number of faces after smoothing?";
bool read_mesh(Mesh &_mesh, const std::string &_filename)
Read a mesh from file _filename.