File size: 650 Bytes
5b89cb9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | #include <test_common.h>
#include <igl/is_edge_manifold.h>
TEST_CASE("is_edge_manifold: positive", "[igl]" "[slow]")
{
const auto test_case = [](const std::string ¶m)
{
Eigen::MatrixXd V;
Eigen::MatrixXi F;
igl::read_triangle_mesh(test_common::data_path(param), V, F);
REQUIRE ( igl::is_edge_manifold(F) );
};
test_common::run_test_cases(test_common::manifold_meshes(), test_case);
}
TEST_CASE("is_edge_manifold: negative", "[igl]")
{
Eigen::MatrixXd V;
Eigen::MatrixXi F;
// Known non-manifold mesh
igl::read_triangle_mesh(test_common::data_path("truck.obj"), V, F);
REQUIRE (! igl::is_edge_manifold(F) );
}
|