mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 10:32:20 +00:00
Bugfix: fix crash in some circumstances caused by Avoid crossing perimeters. #2271
This commit is contained in:
@@ -107,10 +107,13 @@ Point::nearest_point_index(const PointPtrs &points) const
|
||||
return this->nearest_point_index(p);
|
||||
}
|
||||
|
||||
void
|
||||
bool
|
||||
Point::nearest_point(const Points &points, Point* point) const
|
||||
{
|
||||
*point = points.at(this->nearest_point_index(points));
|
||||
int idx = this->nearest_point_index(points);
|
||||
if (idx == -1) return false;
|
||||
*point = points.at(idx);
|
||||
return true;
|
||||
}
|
||||
|
||||
double
|
||||
|
||||
Reference in New Issue
Block a user