You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
650 B
25 lines
650 B
1 year ago
|
#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) );
|
||
|
}
|