diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/border.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/border.h index 609352d5fac..6f8c0cb9081 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/border.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/border.h @@ -13,7 +13,7 @@ #ifndef CGAL_POLYGON_MESH_PROCESSING_GET_BORDER_H #define CGAL_POLYGON_MESH_PROCESSING_GET_BORDER_H -#include +#include #include #include diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Isotropic_remeshing/remesh_impl.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Isotropic_remeshing/remesh_impl.h index f3098e2422a..fa70904f325 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Isotropic_remeshing/remesh_impl.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Isotropic_remeshing/remesh_impl.h @@ -18,7 +18,7 @@ #include #include -#include +#include #include #include #include @@ -1492,6 +1492,8 @@ private: || GeomTraits().collinear_3_object()(t, p, q)) continue; + typename GeomTraits::Construct_cross_product_vector_3 cross_product + = GeomTraits().construct_cross_product_vector_3_object(); #ifdef CGAL_PMP_REMESHING_DEBUG typename GeomTraits::Construct_normal_3 normal = GeomTraits().construct_normal_3_object(); @@ -1499,13 +1501,13 @@ private: Vector_3 normal_after_collapse = normal(t, p, q); CGAL::Sign s1 = CGAL::sign(normal_before_collapse * normal_after_collapse); - CGAL::Sign s2 = CGAL::sign(CGAL::cross_product(Vector_3(s, p), Vector_3(s, q)) - * CGAL::cross_product(Vector_3(t, p), Vector_3(t, q))); + CGAL::Sign s2 = CGAL::sign(cross_product(Vector_3(s, p), Vector_3(s, q)) + * cross_product(Vector_3(t, p), Vector_3(t, q))); CGAL_assertion(s1 == s2); #endif - if(CGAL::sign(CGAL::cross_product(Vector_3(s, p), Vector_3(s, q)) - * CGAL::cross_product(Vector_3(t, p), Vector_3(t, q))) + if(CGAL::sign(cross_product(Vector_3(s, p), Vector_3(s, q)) + * cross_product(Vector_3(t, p), Vector_3(t, q))) != CGAL::POSITIVE) return true; }