remesh_self_intersections.cpp 769 B

1234567891011121314151617181920212223
  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. {
  8. Eigen::MatrixXd V;
  9. Eigen::MatrixXi F;
  10. test_common::load_mesh("cube_with_fold.ply", V, F);
  11. typedef CGAL::Exact_predicates_exact_constructions_kernel K;
  12. typedef Eigen::Matrix<K::FT, Eigen::Dynamic, Eigen::Dynamic> MatrixXe;
  13. MatrixXe VV;
  14. Eigen::MatrixXi FF, IF;
  15. Eigen::VectorXi J, IM;
  16. igl::copyleft::cgal::RemeshSelfIntersectionsParam param;
  17. igl::copyleft::cgal::remesh_self_intersections(V, F, param, VV, FF, IF, J, IM);
  18. }