mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-23 08:41:11 -06:00
Return objects by reference instead of always cloning
This commit is contained in:
parent
1741301973
commit
c0789506e4
30 changed files with 158 additions and 54 deletions
|
@ -8,8 +8,11 @@ namespace Slic3r {
|
|||
|
||||
class Polyline : public MultiPoint {
|
||||
public:
|
||||
Point* last_point();
|
||||
const Point* last_point() const;
|
||||
Lines lines();
|
||||
SV* to_SV_ref() const;
|
||||
SV* to_SV_clone_ref() const;
|
||||
};
|
||||
|
||||
typedef std::vector<Polyline> Polylines;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue