Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FormerLurker/ArcWelderLib.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFormerLurker <hochgebe@gmail.com>2020-05-17 01:45:34 +0300
committerFormerLurker <hochgebe@gmail.com>2020-05-17 01:45:34 +0300
commitd89b70ae4a0377818bc7a3cc0f35167c2cf787ab (patch)
tree67b9cb94a5d46a478de4eeada43b1491b789050f
parentd201085f565ed498d218ece1783a5c76bcfdb25d (diff)
Remove redundant testing for arcs.
-rw-r--r--ArcWelder/segmented_arc.cpp9
-rw-r--r--ArcWelderTest/ArcWelderTest.cpp2
2 files changed, 2 insertions, 9 deletions
diff --git a/ArcWelder/segmented_arc.cpp b/ArcWelder/segmented_arc.cpp
index 28145fd..79d12c7 100644
--- a/ArcWelder/segmented_arc.cpp
+++ b/ArcWelder/segmented_arc.cpp
@@ -69,12 +69,6 @@ point segmented_arc::pop_back(double e_relative)
bool segmented_arc::is_shape()
{
- if (is_shape_)
- {
- arc a;
- bool is_arc = try_get_arc(a);
- return is_arc;
- }
return is_shape_;
}
@@ -241,8 +235,7 @@ bool segmented_arc::does_circle_fit_points_(const circle& c)
}
// get the current arc and compare the total length to the original length
- arc a;
- return try_get_arc_(c, a);
+ return true;
}
diff --git a/ArcWelderTest/ArcWelderTest.cpp b/ArcWelderTest/ArcWelderTest.cpp
index 97bd44d..7a4c73e 100644
--- a/ArcWelderTest/ArcWelderTest.cpp
+++ b/ArcWelderTest/ArcWelderTest.cpp
@@ -241,7 +241,7 @@ static void TestAntiStutter(std::string filePath)
p_logger->set_log_level(INFO);
//arc_welder arc_welder_obj(BENCHY_0_5_MM_NO_WIPE, "C:\\Users\\Brad\\Documents\\3DPrinter\\AntiStutter\\test_output.gcode", p_logger, max_resolution, false, 50, static_cast<progress_callback>(on_progress));
//arc_welder arc_welder_obj(SIX_SPEED_TEST, "C:\\Users\\Brad\\Documents\\3DPrinter\\AntiStutter\\test_output.gcode", p_logger, max_resolution, false, 50, on_progress);
- arc_welder arc_welder_obj(BENCHY_GYROID_RELATIVE_E_NOWIPE, "C:\\Users\\Brad\\Documents\\3DPrinter\\AntiStutter\\test_output.gcode", p_logger, max_resolution, max_radius_mm, false, 50, on_progress);
+ arc_welder arc_welder_obj(SUPER_HUGE_TEST, "C:\\Users\\Brad\\Documents\\3DPrinter\\AntiStutter\\test_output.gcode", p_logger, max_resolution, max_radius_mm, false, 50, on_progress);
//BENCHY_LAYER_1GCODE
//SMALL_TEST
//FACE_SHIELD