Download vendor/libigl/tests/include/igl/is_edge_manifold.cpp from AVSim/simulation-package: direct link, hf CLI and curl.
- Browser
- Download file 650 Bytes
-
https://huggingface.co/datasets/AVSim/simulation-package/resolve/main/vendor/libigl/tests/include/igl/is_edge_manifold.cpp
- Command line
-
hf download hf://datasets/AVSim/simulation-package/vendor/libigl/tests/include/igl/is_edge_manifold.cpp
-
curl -L -o is_edge_manifold.cpp https://huggingface.co/datasets/AVSim/simulation-package/resolve/main/vendor/libigl/tests/include/igl/is_edge_manifold.cpp
650 Bytes
| 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) ); | |
| } | |