Port automatic hole to polyhole conversion from SuperSlicer

Co-authored-by: supermerill <merill@free.fr>
This commit is contained in:
LovelyTwo 2023-10-06 19:26:53 +11:00 committed by Julian Tyler
parent ee9f651511
commit 3359dadd32
10 changed files with 189 additions and 2 deletions

View file

@ -209,6 +209,8 @@ public:
double ccw_angle(const Point &p1, const Point &p2) const;
Point projection_onto(const MultiPoint &poly) const;
Point projection_onto(const Line &line) const;
double distance_to(const Point &point) const { return (point - *this).cast<double>().norm(); }
};
inline bool operator<(const Point &l, const Point &r)