mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 10:47:50 -06:00
Selection of shortest path around polygon boundary
This commit is contained in:
parent
7a4ba7d131
commit
6573bc15a5
2 changed files with 59 additions and 10 deletions
|
@ -77,6 +77,15 @@ protected:
|
|||
inline bool operator<(const Intersection &other) const { return this->point.x() < other.point.x(); }
|
||||
};
|
||||
|
||||
enum class Direction { Forward, Backward };
|
||||
|
||||
private:
|
||||
static Direction get_shortest_direction(const Lines &lines,
|
||||
const size_t start_idx,
|
||||
const size_t end_idx,
|
||||
const Point &intersection_first,
|
||||
const Point &intersection_last);
|
||||
|
||||
public:
|
||||
AvoidCrossingPerimeters2() : AvoidCrossingPerimeters() {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue