2 #include <gtest/gtest.h> 3 #include <Unittests/unittests_common.hh> 4 #include <OpenMesh/Tools/Dualizer/meshDualT.hh> 13 virtual void SetUp() {
19 virtual void TearDown() {
36 TEST_F(OpenMeshMeshDual, Dualize) {
44 dualMesh = OpenMesh::Util::MeshDual(mesh_);
46 EXPECT_EQ(15048u, dualMesh->n_vertices()) <<
"The number of vertices after dual computation is not correct!";
47 EXPECT_EQ(22572u, dualMesh->n_edges()) <<
"The number of edges after dual computation is not correct!";
48 EXPECT_EQ(7526u, dualMesh->n_faces()) <<
"The number of faces after dual computation is not correct!";
bool read_mesh(Mesh &_mesh, const std::string &_filename)
Read a mesh from file _filename.