File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -137,8 +137,8 @@ class ClosedPolyline : public Polyline
137137 */
138138 [[nodiscard]] OpenPolyline toPseudoOpenPolyline () const ;
139139
140- /* ! Rotates the points of the line so that it will now start at the point with the given index */
141- void rotateToStartPoint (const size_t start_index);
140+ /* ! Shifts the points of the line so that it will now start at the point with the given index */
141+ void shiftVerticesToStartPoint (const size_t start_index);
142142};
143143
144144} // namespace cura
Original file line number Diff line number Diff line change @@ -952,7 +952,7 @@ void LayerPlan::addInfillPolygonsByOptimizer(
952952 const size_t start_index = ordered_polygon.start_vertex_ ;
953953
954954 ClosedPolyline split_polygon (polygon);
955- split_polygon.rotateToStartPoint (start_index);
955+ split_polygon.shiftVerticesToStartPoint (start_index);
956956 remaining_lines.push_back (split_polygon.toPseudoOpenPolyline ());
957957 }
958958}
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ OpenPolyline ClosedPolyline::toPseudoOpenPolyline() const
5555 return open_polyline;
5656}
5757
58- void ClosedPolyline::rotateToStartPoint (const size_t start_index)
58+ void ClosedPolyline::shiftVerticesToStartPoint (const size_t start_index)
5959{
6060 if (! isValid () || start_index == 0 || start_index >= size ())
6161 {
You can’t perform that action at this time.
0 commit comments