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& 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 diff --git a/ArcWelderTest/ArcWelderTest.cpp b/ArcWelderTest/ArcWelderTest.cpp index dee0fed..c8b26bd 100644 --- a/ArcWelderTest/ArcWelderTest.cpp +++ b/ArcWelderTest/ArcWelderTest.cpp @@ -274,7 +274,7 @@ static void TestAntiStutter(std::string filePath) double mm_per_arc_segment = 0; //double path_tolerance_percent = ARC_LENGTH_PERCENT_TOLERANCE_DEFAULT; // 1 percent - double path_tolerance_percent = 100000; + double path_tolerance_percent = 0.05; //double path_tolerance_percent = 0.05; std::vector logger_names; logger_names.push_back("arc_welder.gcode_conversion");