mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 02:07:54 -06:00
Port automatic hole to polyhole conversion from SuperSlicer
Co-authored-by: supermerill <merill@free.fr>
This commit is contained in:
parent
ee9f651511
commit
3359dadd32
10 changed files with 189 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue