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