mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-22 01:21:50 -06:00
Don't return first_point() and last_point() by reference
This commit is contained in:
parent
0ffb0f6a58
commit
275422fac7
12 changed files with 28 additions and 42 deletions
|
@ -31,8 +31,8 @@ class ExtrusionEntity
|
|||
double height; // vertical thickness of the extrusion expressed in mm
|
||||
double flow_spacing;
|
||||
virtual void reverse() = 0;
|
||||
virtual Point* first_point() = 0;
|
||||
virtual Point* last_point() = 0;
|
||||
virtual Point* first_point() const = 0;
|
||||
virtual Point* last_point() const = 0;
|
||||
};
|
||||
|
||||
typedef std::vector<ExtrusionEntity*> ExtrusionEntitiesPtr;
|
||||
|
@ -43,8 +43,8 @@ class ExtrusionPath : public ExtrusionEntity
|
|||
ExtrusionPath* clone() const;
|
||||
Polyline polyline;
|
||||
void reverse();
|
||||
Point* first_point();
|
||||
Point* last_point();
|
||||
Point* first_point() const;
|
||||
Point* last_point() const;
|
||||
};
|
||||
|
||||
class ExtrusionLoop : public ExtrusionEntity
|
||||
|
@ -56,8 +56,8 @@ class ExtrusionLoop : public ExtrusionEntity
|
|||
ExtrusionPath* split_at_first_point();
|
||||
bool make_counter_clockwise();
|
||||
void reverse();
|
||||
Point* first_point();
|
||||
Point* last_point();
|
||||
Point* first_point() const;
|
||||
Point* last_point() const;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue