Skip to content

Commit

Permalink
Modern style cast.
Browse files Browse the repository at this point in the history
done as part of CURA-9533
  • Loading branch information
rburema committed Sep 1, 2022
1 parent b088c7f commit 75c3d06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TreeSupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ void TreeSupport::drawCircles(SliceDataStorage& storage, const std::vector<std::
const size_t z_distance_bottom_layers = round_up_divide(z_distance_bottom, layer_height) > 0 ? round_up_divide(z_distance_bottom, layer_height) : 1;
const double diameter_angle_scale_factor = sin(mesh_group_settings.get<AngleRadians>("support_tree_branch_diameter_angle")) * layer_height / branch_radius; // Scale factor per layer to produce the desired angle.
const coord_t max_radius = mesh_group_settings.get<coord_t>("support_tree_max_diameter");
const double max_relative_expansion = double(max_radius) / branch_radius - 1.0;
const double max_relative_expansion = static_cast<double>(max_radius) / branch_radius - 1.0;
const coord_t line_width = mesh_group_settings.get<coord_t>("support_line_width");
const coord_t minimum_tip_radius = line_width / 2 * 1.5; // End up slightly wider than 1 line width in the tip.
const size_t tip_layers = (branch_radius - minimum_tip_radius) / layer_height; // The number of layers to be shrinking the circle to create a tip. This produces a 45 degree angle.
Expand Down

0 comments on commit 75c3d06

Please sign in to comment.