remesh_self_intersections.cpp 767 B

12345678910111213141516171819202122
  1. #include <test_common.h>
  2. #include <Eigen/Dense>
  3. #include <igl/copyleft/cgal/remesh_self_intersections.h>
  4. #include <igl/copyleft/cgal/RemeshSelfIntersectionsParam.h>
  5. #include <CGAL/Exact_predicates_exact_constructions_kernel.h>
  6. TEST_CASE("RemeshSelfIntersections: CubeWithFold", "[igl/copyleft/cgal]")
  7. Eigen::MatrixXd V;
  8. Eigen::MatrixXi F;
  9. test_common::load_mesh("cube_with_fold.ply", V, F);
  10. typedef CGAL::Exact_predicates_exact_constructions_kernel K;
  11. typedef Eigen::Matrix<K::FT, Eigen::Dynamic, Eigen::Dynamic> MatrixXe;
  12. MatrixXe VV;
  13. Eigen::MatrixXi FF, IF;
  14. Eigen::VectorXi J, IM;
  15. igl::copyleft::cgal::RemeshSelfIntersectionsParam param;
  16. igl::copyleft::cgal::remesh_self_intersections(V, F, param, VV, FF, IF, J, IM);
  17. }