Skip to content

Commit

Permalink
Fix Windows build (remove deprecated use of M_PI)
Browse files Browse the repository at this point in the history
  • Loading branch information
wawanbreton committed Jan 25, 2024
1 parent 6c534e4 commit 4c4c565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PrimeTower.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 4c4c565

Please sign in to comment.