diff options
author | FormerLurker <hochgebe@gmail.com> | 2021-01-24 22:52:00 +0300 |
---|---|---|
committer | FormerLurker <hochgebe@gmail.com> | 2021-01-24 22:52:00 +0300 |
commit | 11d11e4b7cc1eb28bf62ca9732b98521a80b05cc (patch) | |
tree | 9dad50156a97faf1c94dbc60b7a5104967285b06 /ArcWelder | |
parent | a6e193391b5281faec1ce8021c535a790dc3e75b (diff) |
Code Cleanup and Testing1.1.0
Diffstat (limited to 'ArcWelder')
-rw-r--r-- | ArcWelder/segmented_shape.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ArcWelder/segmented_shape.cpp b/ArcWelder/segmented_shape.cpp index 1964526..2a7d9b7 100644 --- a/ArcWelder/segmented_shape.cpp +++ b/ArcWelder/segmented_shape.cpp @@ -305,12 +305,11 @@ bool circle::is_over_deviation(const array_list<printer_point>& points, const do double z_step_per_distance = 0; // shared point to test point point_to_test; - point current_point; int max_index = points.count() - 1; // Skip the first and last points since they will fit perfectly. for (int index = 0; index < max_index; index++) { - current_point = points[index]; + point current_point(points[index]); if (index != 0) { // Make sure the length from the center of our circle to the test point is |