From 4c4c565a05f8461bde6c24003ccd18876fa3ca85 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Thu, 25 Jan 2024 12:51:02 +0100 Subject: [PATCH] Fix Windows build (remove deprecated use of M_PI) --- src/PrimeTower.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PrimeTower.cpp b/src/PrimeTower.cpp index 8987bfb8e1..a6873cf8cc 100644 --- a/src/PrimeTower.cpp +++ b/src/PrimeTower.cpp @@ -296,7 +296,7 @@ Polygons PrimeTower::generatePath_sparseInfill( const coord_t ring_inner_radius = (inner_radius + i * actual_radius_step) + semi_line_width; const coord_t ring_outer_radius = (inner_radius + (i + 1) * actual_radius_step) - semi_line_width; - const size_t semi_nb_spokes = std::ceil((M_PI * ring_outer_radius) / max_bridging_distance); + const size_t semi_nb_spokes = std::ceil((std::numbers::pi * ring_outer_radius) / max_bridging_distance); pattern.add(PolygonUtils::makeWheel(middle_, ring_inner_radius, ring_outer_radius, semi_nb_spokes, ARC_RESOLUTION)); }