2013-07-14 14:09:54 +00:00
|
|
|
#ifndef slic3r_Polyline_hpp_
|
|
|
|
#define slic3r_Polyline_hpp_
|
|
|
|
|
2013-07-15 20:57:22 +00:00
|
|
|
#include "Line.hpp"
|
|
|
|
#include "MultiPoint.hpp"
|
2013-07-14 14:09:54 +00:00
|
|
|
|
|
|
|
namespace Slic3r {
|
|
|
|
|
2013-07-15 20:57:22 +00:00
|
|
|
class Polyline : public MultiPoint {
|
2013-07-14 14:09:54 +00:00
|
|
|
public:
|
2013-09-02 20:33:03 +00:00
|
|
|
Point* last_point() const;
|
2013-09-13 13:19:15 +00:00
|
|
|
Lines lines() const;
|
2013-10-27 21:57:25 +00:00
|
|
|
void clip_end(double distance);
|
2013-09-13 12:48:40 +00:00
|
|
|
|
|
|
|
#ifdef SLIC3RXS
|
2013-09-03 17:26:58 +00:00
|
|
|
SV* to_SV_ref();
|
2013-09-02 18:22:20 +00:00
|
|
|
SV* to_SV_clone_ref() const;
|
2013-09-13 12:48:40 +00:00
|
|
|
#endif
|
2013-07-14 14:09:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef std::vector<Polyline> Polylines;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|