2013-07-14 18:09:54 +04:00
|
|
|
#ifndef slic3r_Polyline_hpp_
|
|
|
|
#define slic3r_Polyline_hpp_
|
|
|
|
|
2013-07-16 00:57:22 +04:00
|
|
|
#include "Line.hpp"
|
|
|
|
#include "MultiPoint.hpp"
|
2013-07-14 18:09:54 +04:00
|
|
|
|
|
|
|
namespace Slic3r {
|
|
|
|
|
2013-11-21 20:53:50 +04:00
|
|
|
class Polyline;
|
|
|
|
typedef std::vector<Polyline> Polylines;
|
|
|
|
|
2013-07-16 00:57:22 +04:00
|
|
|
class Polyline : public MultiPoint {
|
2013-07-14 18:09:54 +04:00
|
|
|
public:
|
2013-11-21 20:53:50 +04:00
|
|
|
operator Polylines() const;
|
2013-09-03 00:33:03 +04:00
|
|
|
Point* last_point() const;
|
2013-09-13 17:19:15 +04:00
|
|
|
Lines lines() const;
|
2013-10-28 01:57:25 +04:00
|
|
|
void clip_end(double distance);
|
2013-11-06 22:30:45 +04:00
|
|
|
void clip_start(double distance);
|
2014-03-15 19:53:20 +04:00
|
|
|
void extend_end(double distance);
|
|
|
|
void extend_start(double distance);
|
2013-11-11 23:59:58 +04:00
|
|
|
Points equally_spaced_points(double distance) const;
|
2013-11-22 05:16:10 +04:00
|
|
|
void simplify(double tolerance);
|
2013-09-13 16:48:40 +04:00
|
|
|
|
|
|
|
#ifdef SLIC3RXS
|
2014-01-12 03:54:10 +04:00
|
|
|
void from_SV_check(SV* poly_sv);
|
2013-09-03 21:26:58 +04:00
|
|
|
SV* to_SV_ref();
|
2013-09-02 22:22:20 +04:00
|
|
|
SV* to_SV_clone_ref() const;
|
2013-09-13 16:48:40 +04:00
|
|
|
#endif
|
2013-07-14 18:09:54 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|