Skip to content

Commit

Permalink
Merge branch 'fix_initial_layer_diameter' of https://github.com/Thoma…
Browse files Browse the repository at this point in the history
  • Loading branch information
nallath committed Aug 5, 2024
2 parents 719753f + b5f2e81 commit fac38a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/TreeSupportSettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ struct TreeSupportSettings
: RestPreference::BUILDPLATE)
, xy_distance(mesh_group_settings.get<coord_t>("support_xy_distance"))
, bp_radius(mesh_group_settings.get<coord_t>("support_tree_bp_diameter") / 2)
, diameter_scale_bp_radius(std::min(sin(0.7) * static_cast<double>(layer_height / branch_radius), 1.0 / (branch_radius / (support_line_width / 2.0))))
, diameter_scale_bp_radius(std::min(sin(0.7) * static_cast<double>(layer_height) / static_cast<double>(branch_radius), 1.0 / (branch_radius / (support_line_width / 2.0))))
, // Either 40° or as much as possible so that 2 lines will overlap by at least 50%, whichever is smaller.
support_overrides(mesh_group_settings.get<SupportDistPriority>("support_xy_overrides_z"))
, xy_min_distance(support_overrides == SupportDistPriority::Z_OVERRIDES_XY ? mesh_group_settings.get<coord_t>("support_xy_distance_overhang") : xy_distance)
Expand Down

0 comments on commit fac38a2

Please sign in to comment.