When placing seam, never produce segments shorter than 1.5um.

This commit is contained in:
Vojtech Bubnik 2022-06-27 14:53:33 +02:00 committed by Lukas Matena
parent 0edc751199
commit 1d41ffdd7d
8 changed files with 126 additions and 56 deletions

View file

@ -43,7 +43,12 @@ public:
double length() const;
bool is_valid() const { return this->points.size() >= 2; }
// Return index of a polygon point exactly equal to point.
// Return -1 if no such point exists.
int find_point(const Point &point) const;
// Return index of the closest point to point closer than scaled_epsilon.
// Return -1 if no such point exists.
int find_point(const Point &point, const double scaled_epsilon) const;
bool has_boundary_point(const Point &point) const;
int closest_point_index(const Point &point) const {
int idx = -1;