Download vendor/libigl/tests/include/igl/copyleft/cgal/CSGTree.cpp from AVSim/simulation-package: direct link, hf CLI and curl.
- Browser
- Download file 536 Bytes
-
https://huggingface.co/datasets/AVSim/simulation-package/resolve/main/vendor/libigl/tests/include/igl/copyleft/cgal/CSGTree.cpp
- Command line
-
hf download hf://datasets/AVSim/simulation-package/vendor/libigl/tests/include/igl/copyleft/cgal/CSGTree.cpp
-
curl -L -o CSGTree.cpp https://huggingface.co/datasets/AVSim/simulation-package/resolve/main/vendor/libigl/tests/include/igl/copyleft/cgal/CSGTree.cpp
536 Bytes
| TEST_CASE("CSGTree: extrusion", "[igl/copyleft/cgal]") { | |
| Eigen::MatrixXd V; | |
| Eigen::MatrixXi F; | |
| igl::read_triangle_mesh(test_common::data_path("extrusion.obj"), V, F); | |
| igl::copyleft::cgal::CSGTree tree(V, F); | |
| igl::copyleft::cgal::CSGTree inter(tree, tree, "i"); // returns error | |
| Eigen::MatrixXd V2 = inter.cast_V<Eigen::MatrixXd>(); | |
| Eigen::MatrixXi F2 = inter.F(); | |
| REQUIRE (V2.rows() == V.rows()); | |
| REQUIRE (F2.rows() == F.rows()); | |
| } | |