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 02:17:15 +0300
committerFormerLurker <hochgebe@gmail.com>2020-05-17 02:17:15 +0300
commitf962acda6cfd7d12dd917803a2e92568dd0d00e2 (patch)
tree2622bf52b6e510e9f0413f4b5b55b18552cdb724 /ArcWelder
parentd89b70ae4a0377818bc7a3cc0f35167c2cf787ab (diff)
Add back in arc check. Figure out why it is necessary later.
Diffstat (limited to 'ArcWelder')
-rw-r--r--ArcWelder/segmented_arc.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/ArcWelder/segmented_arc.cpp b/ArcWelder/segmented_arc.cpp
index 79d12c7..28145fd 100644
--- a/ArcWelder/segmented_arc.cpp
+++ b/ArcWelder/segmented_arc.cpp
@@ -69,6 +69,12 @@ 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_;
}
@@ -235,7 +241,8 @@ bool segmented_arc::does_circle_fit_points_(const circle& c)
}
// get the current arc and compare the total length to the original length
- return true;
+ arc a;
+ return try_get_arc_(c, a);
}