Files
QIDISlicer/src/libslic3r/IntersectionPoints.hpp

22 lines
706 B
C++
Raw Normal View History

2023-06-10 10:14:12 +08:00
#ifndef slic3r_IntersectionPoints_hpp_
#define slic3r_IntersectionPoints_hpp_
#include "ExPolygon.hpp"
namespace Slic3r {
2023-12-27 18:02:35 +08:00
struct IntersectionLines {
uint32_t line_index1;
uint32_t line_index2;
Vec2d intersection;
};
using IntersectionsLines = std::vector<IntersectionLines>;
2023-06-10 10:14:12 +08:00
// collect all intersecting points
2023-12-27 18:02:35 +08:00
IntersectionsLines get_intersections(const Lines &lines);
IntersectionsLines get_intersections(const Polygon &polygon);
IntersectionsLines get_intersections(const Polygons &polygons);
IntersectionsLines get_intersections(const ExPolygon &expolygon);
IntersectionsLines get_intersections(const ExPolygons &expolygons);
2023-06-10 10:14:12 +08:00
} // namespace Slic3r
#endif // slic3r_IntersectionPoints_hpp_