Selection of shortest path around polygon boundary

This commit is contained in:
Lukáš Hejl 2020-09-21 14:49:22 +02:00
parent 7a4ba7d131
commit 6573bc15a5
2 changed files with 59 additions and 10 deletions

View file

@ -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() {}