From aaec78d7050d1d186ca34d527fb6af10a1aa95a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Thu, 24 Mar 2022 10:15:16 +0100 Subject: [PATCH] Add min max parentheses for Windows --- .../include/CGAL/Alpha_wrap_3/internal/Alpha_wrap_3.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Alpha_wrap_3/include/CGAL/Alpha_wrap_3/internal/Alpha_wrap_3.h b/Alpha_wrap_3/include/CGAL/Alpha_wrap_3/internal/Alpha_wrap_3.h index 8d8cc517252..705a5ce9286 100644 --- a/Alpha_wrap_3/include/CGAL/Alpha_wrap_3/internal/Alpha_wrap_3.h +++ b/Alpha_wrap_3/include/CGAL/Alpha_wrap_3/internal/Alpha_wrap_3.h @@ -335,24 +335,25 @@ public: { // Input axis-aligned bounding box SC_Iso_cuboid_3 bbox = m_oracle.bbox(); - const SC_Point_3 bbox_centroid = midpoint(bbox.min(), bbox.max()); + const SC_Point_3 bbox_centroid = midpoint((bbox.min)(), (bbox.max)()); // Scale a bit to create the initial points not too close to the input double scaling = 1.2; CGAL::Aff_transformation_3 scale(SCALING, scaling); - bbox = SC_Iso_cuboid_3(scale.transform(bbox.min()), scale.transform(bbox.max())); + bbox = SC_Iso_cuboid_3(scale.transform((bbox.min)()), scale.transform((bbox.max)())); // Translate bbox back to initial centroid - const SC_Point_3 bbox_transformed_centroid = midpoint(bbox.min(), bbox.max()); + const SC_Point_3 bbox_transformed_centroid = midpoint((bbox.min)(), (bbox.max)()); const SC_Vector_3 diff_centroid = bbox_centroid - bbox_transformed_centroid; CGAL::Aff_transformation_3 centroid_translate(TRANSLATION, diff_centroid); - bbox = SC_Iso_cuboid_3(centroid_translate.transform(bbox.min()), centroid_translate.transform(bbox.max())); + bbox = SC_Iso_cuboid_3(centroid_translate.transform((bbox.min)()), + centroid_translate.transform((bbox.max)())); // Add the offset SC_Vector_3 offset_ext = std::sqrt(3.) * offset * SC_Vector_3(1, 1, 1); CGAL::Aff_transformation_3 translate_m(TRANSLATION, - offset_ext); CGAL::Aff_transformation_3 translate_M(TRANSLATION, offset_ext); - bbox = SC_Iso_cuboid_3(translate_m.transform(bbox.min()), translate_M.transform(bbox.max())); + bbox = SC_Iso_cuboid_3(translate_m.transform((bbox.min)()), translate_M.transform((bbox.max)())); std::cout << "Bbox: " << bbox << std::endl;