mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-02-03 09:28:44 +03:00
Merge prusa 2.6.1
This commit is contained in:
@@ -268,6 +268,27 @@ bool polygons_match(const Polygon &l, const Polygon &r);
|
||||
Polygon make_circle(double radius, double error);
|
||||
Polygon make_circle_num_segments(double radius, size_t num_segments);
|
||||
|
||||
/// <summary>
|
||||
/// Define point laying on polygon
|
||||
/// keep index of polygon line and point coordinate
|
||||
/// </summary>
|
||||
struct PolygonPoint
|
||||
{
|
||||
// index of line inside of polygon
|
||||
// 0 .. from point polygon[0] to polygon[1]
|
||||
size_t index;
|
||||
|
||||
// Point, which lay on line defined by index
|
||||
Point point;
|
||||
};
|
||||
using PolygonPoints = std::vector<PolygonPoint>;
|
||||
|
||||
// To replace reserve_vector where it's used for Polygons
|
||||
template<class I> IntegerOnly<I, Polygons> reserve_polygons(I cap)
|
||||
{
|
||||
return reserve_vector<Polygon, I, typename Polygons::allocator_type>(cap);
|
||||
}
|
||||
|
||||
} // Slic3r
|
||||
|
||||
// start Boost
|
||||
|
||||
Reference in New Issue
Block a user