mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-30 12:21:05 +00:00
Fix:path conflictcheck
Coincident lines are considered as intersecting jira:STUDIO-14085 Change-Id: I1487e6e2479e2488a3fd55651b8b4fb1bc1f4ced (cherry picked from commit 2348328a96a8d805c35cae8f03ebaa0869b1313e)
This commit is contained in:
@@ -183,7 +183,7 @@ public:
|
||||
bool clip_with_bbox(const BoundingBox &bbox);
|
||||
// Extend the line from both sides by an offset.
|
||||
void extend(double offset);
|
||||
|
||||
bool overlap(const Line &line, double &overlap_length) const;
|
||||
static inline double distance_to_squared(const Point &point, const Point &a, const Point &b) { return line_alg::distance_to_squared(Line{a, b}, Vec<2, coord_t>{point}); }
|
||||
static double distance_to(const Point &point, const Point &a, const Point &b) { return sqrt(distance_to_squared(point, a, b)); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user