mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-02-03 09:28:44 +03:00
update libslic3r
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
#ifndef slic3r_Line_hpp_
|
||||
#define slic3r_Line_hpp_
|
||||
|
||||
#include <type_traits>
|
||||
#include <cmath>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
#include <complex>
|
||||
|
||||
#include "libslic3r.h"
|
||||
#include "Point.hpp"
|
||||
|
||||
#include <type_traits>
|
||||
|
||||
namespace Slic3r {
|
||||
|
||||
class BoundingBox;
|
||||
@@ -14,6 +18,7 @@ class Line3;
|
||||
class Linef3;
|
||||
class Polyline;
|
||||
class ThickLine;
|
||||
|
||||
typedef std::vector<Line> Lines;
|
||||
typedef std::vector<Line3> Lines3;
|
||||
typedef std::vector<ThickLine> ThickLines;
|
||||
@@ -180,7 +185,7 @@ template<class L> bool intersection(const L &l1, const L &l2, Vec<Dim<L>, Scalar
|
||||
class Line
|
||||
{
|
||||
public:
|
||||
Line() {}
|
||||
Line() = default;
|
||||
Line(const Point& _a, const Point& _b) : a(_a), b(_b) {}
|
||||
explicit operator Lines() const { Lines lines; lines.emplace_back(*this); return lines; }
|
||||
void scale(double factor) { this->a *= factor; this->b *= factor; }
|
||||
@@ -305,6 +310,7 @@ BoundingBox get_extents(const Lines &lines);
|
||||
|
||||
// start Boost
|
||||
#include <boost/polygon/polygon.hpp>
|
||||
|
||||
namespace boost { namespace polygon {
|
||||
template <>
|
||||
struct geometry_concept<Slic3r::Line> { typedef segment_concept type; };
|
||||
|
||||
Reference in New Issue
Block a user