mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-15 13:42:40 -07:00
Bugfix: seam_position = aligned failed in certaim circumstances because of faulty concave points detection. Includes regression test
This commit is contained in:
@@ -55,6 +55,12 @@ Point::coincides_with(const Point &point) const
|
||||
return this->x == point.x && this->y == point.y;
|
||||
}
|
||||
|
||||
bool
|
||||
Point::coincides_with_epsilon(const Point &point) const
|
||||
{
|
||||
return std::abs(this->x - point.x) < SCALED_EPSILON && std::abs(this->y - point.y) < SCALED_EPSILON;
|
||||
}
|
||||
|
||||
int
|
||||
Point::nearest_point_index(const Points &points) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user