Return objects by reference instead of always cloning

This commit is contained in:
Alessandro Ranellucci 2013-09-02 20:22:20 +02:00
parent 1741301973
commit c0789506e4
30 changed files with 158 additions and 54 deletions

View file

@ -11,7 +11,9 @@ namespace Slic3r {
class Polygon : public MultiPoint {
public:
SV* to_SV_ref();
Point* last_point();
SV* to_SV_ref() const;
SV* to_SV_clone_ref() const;
Lines lines();
Polyline* split_at(const Point* point);
Polyline* split_at_index(int index);