I-Seed drone's onboard service
0.0.9
|
Utility for path creation inside the cell. More...
#include <polygon_slicer.h>
Public Types | |
using | kernel = CGAL::Cartesian< double > |
using | polygon = CGAL::Polygon_2< kernel > |
using | point = kernel::Point_2 |
using | traits = CGAL::Arr_segment_traits_2< kernel > |
using | segment = traits::Segment_2 |
Public Member Functions | |
polygon_slicer (const utils::polygon &poly) | |
~polygon_slicer () | |
std::pair< int, int > | slice (double x_slice) const |
Utility for path creation inside the cell.
using polygon_slicer::kernel = CGAL::Cartesian<double> |
using polygon_slicer::polygon = CGAL::Polygon_2<kernel> |
using polygon_slicer::point = kernel::Point_2 |
using polygon_slicer::traits = CGAL::Arr_segment_traits_2<kernel> |
using polygon_slicer::segment = traits::Segment_2 |
|
explicit |
|
default |
auto polygon_slicer::slice | ( | double | x_slice | ) | const |
Assuming drone will fly vertically on the X = x_slice line (parallel to Y-axis), return the start and stop index of the waypoint that will cover given X = x_slice line