mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-13 18:35:52 +08:00
lower angles span so that briding direction is better
This commit is contained in:
parent
7c603a53e0
commit
739bee354d
@ -1799,8 +1799,8 @@ void PrintObject::bridge_over_infill()
|
||||
for (const auto &dir : counted_directions) {
|
||||
int score_acc = 0;
|
||||
double dir_acc = 0;
|
||||
double window_start_angle = dir.first - PI * 0.2;
|
||||
double window_end_angle = dir.first + PI * 0.2;
|
||||
double window_start_angle = dir.first - PI * 0.1;
|
||||
double window_end_angle = dir.first + PI * 0.1;
|
||||
for (auto dirs_window = counted_directions.lower_bound(window_start_angle);
|
||||
dirs_window != counted_directions.upper_bound(window_end_angle); dirs_window++) {
|
||||
dir_acc += dirs_window->first * dirs_window->second;
|
||||
|
Loading…
x
Reference in New Issue
Block a user