mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-23 08:41:11 -06:00
Variable-width gap fill. Yay! #2960
This commit is contained in:
parent
5ff7511a14
commit
6dc42ee902
19 changed files with 379 additions and 166 deletions
|
@ -5,12 +5,14 @@
|
|||
#include "Line.hpp"
|
||||
#include "MultiPoint.hpp"
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace Slic3r {
|
||||
|
||||
class ExPolygon;
|
||||
class Polyline;
|
||||
class ThickPolyline;
|
||||
typedef std::vector<Polyline> Polylines;
|
||||
typedef std::vector<ThickPolyline> ThickPolylines;
|
||||
|
||||
class Polyline : public MultiPoint {
|
||||
public:
|
||||
|
@ -18,7 +20,7 @@ class Polyline : public MultiPoint {
|
|||
operator Line() const;
|
||||
Point last_point() const;
|
||||
Point leftmost_point() const;
|
||||
Lines lines() const;
|
||||
virtual Lines lines() const;
|
||||
void clip_end(double distance);
|
||||
void clip_start(double distance);
|
||||
void extend_end(double distance);
|
||||
|
@ -31,6 +33,13 @@ class Polyline : public MultiPoint {
|
|||
std::string wkt() const;
|
||||
};
|
||||
|
||||
class ThickPolyline : public Polyline {
|
||||
public:
|
||||
std::vector<coordf_t> width;
|
||||
std::vector<bool> endpoints;
|
||||
ThickLines thicklines() const;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue