Skip to content

Commit 2d46123

Browse files
committed
Rename confusing rotate method
CURA-12822
1 parent 146f23b commit 2d46123

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

include/geometry/ClosedPolyline.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

src/LayerPlan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

src/geometry/ClosedPolyline.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)