mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-30 07:01:59 +08:00
Merge branch 'ms_fix_nearest_corner_seam'
This commit is contained in:
commit
7db176ac84
@ -288,12 +288,8 @@ struct NearestCorner {
|
||||
perimeter.point_classifications[i] == point_classification &&
|
||||
perimeter.angle_types[i] != Perimeters::AngleType::smooth) {
|
||||
const Vec2d &point{perimeter.positions[i]};
|
||||
if (!corner_candidate) {
|
||||
corner_candidate = {i, i, point};
|
||||
continue;
|
||||
}
|
||||
const double distance{(prefered_position - point).norm()};
|
||||
if (distance < min_distance) {
|
||||
if (!corner_candidate || distance < min_distance) {
|
||||
corner_candidate = {i, i, point};
|
||||
min_distance = distance;
|
||||
}
|
||||
|
@ -5,6 +5,7 @@
|
||||
#include "../Utils/Http.hpp"
|
||||
#include "slic3r/GUI/I18N.hpp"
|
||||
|
||||
#include <boost/algorithm/string/split.hpp>
|
||||
#include <boost/log/trivial.hpp>
|
||||
#include <boost/beast/core/detail/base64.hpp>
|
||||
#include <curl/curl.h>
|
||||
|
@ -11,6 +11,7 @@
|
||||
#include <thread>
|
||||
#include <mutex>
|
||||
#include <memory>
|
||||
#include <wx/timer.h>
|
||||
|
||||
namespace Slic3r {
|
||||
namespace GUI {
|
||||
|
Loading…
x
Reference in New Issue
Block a user