diff --git a/Polygon_mesh_processing/examples/Polygon_mesh_processing/CMakeLists.txt b/Polygon_mesh_processing/examples/Polygon_mesh_processing/CMakeLists.txt index 3644cc49097..590305c0c8a 100644 --- a/Polygon_mesh_processing/examples/Polygon_mesh_processing/CMakeLists.txt +++ b/Polygon_mesh_processing/examples/Polygon_mesh_processing/CMakeLists.txt @@ -25,8 +25,8 @@ create_single_source_cgal_program("orient_polygon_soup_example.cpp") create_single_source_cgal_program("triangulate_polyline_example.cpp") create_single_source_cgal_program("mesh_slicer_example.cpp") #create_single_source_cgal_program( "remove_degeneracies_example.cpp") -#create_single_source_cgal_program("isotropic_remeshing_example.cpp") -#create_single_source_cgal_program("isotropic_remeshing_of_patch_example.cpp") +create_single_source_cgal_program("isotropic_remeshing_example.cpp") +create_single_source_cgal_program("isotropic_remeshing_of_patch_example.cpp") create_single_source_cgal_program("tangential_relaxation_example.cpp") create_single_source_cgal_program("surface_mesh_intersection.cpp") create_single_source_cgal_program("corefinement_SM.cpp") @@ -69,10 +69,6 @@ if(TARGET CGAL::Eigen3_support) target_link_libraries(hole_filling_example_LCC PUBLIC CGAL::Eigen3_support) create_single_source_cgal_program("mesh_smoothing_example.cpp") target_link_libraries(mesh_smoothing_example PUBLIC CGAL::Eigen3_support) - create_single_source_cgal_program("isotropic_remeshing_example.cpp") - target_link_libraries(isotropic_remeshing_example PUBLIC CGAL::Eigen3_support) - create_single_source_cgal_program("isotropic_remeshing_of_patch_example.cpp") - target_link_libraries(isotropic_remeshing_of_patch_example PUBLIC CGAL::Eigen3_support) create_single_source_cgal_program("isotropic_remeshing_with_sizing_example.cpp") target_link_libraries(isotropic_remeshing_with_sizing_example PUBLIC CGAL::Eigen3_support) create_single_source_cgal_program("delaunay_remeshing_example.cpp") diff --git a/Polygon_mesh_processing/examples/Polygon_mesh_processing/isotropic_remeshing_with_sizing_example.cpp b/Polygon_mesh_processing/examples/Polygon_mesh_processing/isotropic_remeshing_with_sizing_example.cpp index cb4cdef20ac..5d2ad63792e 100644 --- a/Polygon_mesh_processing/examples/Polygon_mesh_processing/isotropic_remeshing_with_sizing_example.cpp +++ b/Polygon_mesh_processing/examples/Polygon_mesh_processing/isotropic_remeshing_with_sizing_example.cpp @@ -2,6 +2,7 @@ #include #include #include +#include #include diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Isotropic_remeshing/Adaptive_sizing_field.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Isotropic_remeshing/Adaptive_sizing_field.h index dea4dc45728..2b56d669139 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Isotropic_remeshing/Adaptive_sizing_field.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Isotropic_remeshing/Adaptive_sizing_field.h @@ -79,6 +79,7 @@ private: template void calc_sizing_map(FaceGraph& face_graph) { + //todo ip: please check if this is good enough to store curvature typedef Principal_curvatures_and_directions Principal_curvatures; typedef typename CGAL::dynamic_vertex_property_t Vertex_curvature_tag; typedef typename boost::property_map #include -#include #include #include diff --git a/Polyhedron/demo/Polyhedron/Plugins/PMP/Isotropic_remeshing_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/PMP/Isotropic_remeshing_plugin.cpp index 52076c1cc4c..e495afc7e6e 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PMP/Isotropic_remeshing_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/PMP/Isotropic_remeshing_plugin.cpp @@ -14,6 +14,7 @@ #include #include +#include #include #include #include @@ -405,6 +406,7 @@ public Q_SLOTS: else //not edges_only { if(protect && + edge_sizing_type == 0 && //todo ip: current solution for adaptive remeshing !CGAL::Polygon_mesh_processing::internal::constraints_are_short_enough( *selection_item->polyhedron(), selection_item->constrained_edges_pmap(), @@ -672,6 +674,7 @@ public Q_SLOTS: } if(protect && + edge_sizing_type == 0 && //todo ip: current solution for adaptive remeshing !CGAL::Polygon_mesh_processing::internal::constraints_are_short_enough( pmesh, ecm,