mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 10:47:50 -06:00
Fixed crossing perimeters in some cases
This commit is contained in:
parent
556c212f9d
commit
69658a57d8
2 changed files with 29 additions and 22 deletions
|
@ -69,12 +69,13 @@ protected:
|
|||
{
|
||||
size_t border_idx;
|
||||
size_t line_idx;
|
||||
Point point_transformed;
|
||||
Point point;
|
||||
|
||||
Intersection(size_t border_idx, size_t line_idx, Point point)
|
||||
: border_idx(border_idx), line_idx(line_idx), point(point){};
|
||||
Intersection(size_t border_idx, size_t line_idx, const Point &point_transformed, const Point &point)
|
||||
: border_idx(border_idx), line_idx(line_idx), point_transformed(point_transformed), point(point){};
|
||||
|
||||
inline bool operator<(const Intersection &other) const { return this->point.x() < other.point.x(); }
|
||||
inline bool operator<(const Intersection &other) const { return this->point_transformed.x() < other.point_transformed.x(); }
|
||||
};
|
||||
|
||||
enum class Direction { Forward, Backward };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue