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-11-08 21:27:34 +0300
committerFormerLurker <hochgebe@gmail.com>2020-11-08 21:27:34 +0300
commit5eb4453aed430b3c5f336030c9a6eeb6e8ed18eb (patch)
treef23df828a2b018b66571d8404b933c5f2f940b12 /ArcWelder/segmented_arc.h
parent8bc8b43506c2601823cad652a33da84389381c99 (diff)
Code cleanup. Rename exe files for console and inverse processor app. Implement #15 and #16.
Diffstat (limited to 'ArcWelder/segmented_arc.h')
-rw-r--r--ArcWelder/segmented_arc.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/ArcWelder/segmented_arc.h b/ArcWelder/segmented_arc.h
index 179d7af..59e92d0 100644
--- a/ArcWelder/segmented_arc.h
+++ b/ArcWelder/segmented_arc.h
@@ -29,8 +29,6 @@
#include <sstream>
#define GCODE_CHAR_BUFFER_SIZE 100
-#define DEFAULT_MAX_RADIUS_MM 1000000.0 // 1km
-//#define DEFAULT_MAX_RADIUS_MM 10000.0 // 10M
class segmented_arc :
public segmented_shape
{
@@ -51,18 +49,13 @@ public:
virtual bool is_shape() const;
point pop_front(double e_relative);
point pop_back(double e_relative);
- bool try_get_arc(arc & target_arc);
double get_max_radius() const;
- // static gcode buffer
private:
bool try_add_point_internal_(point p, double pd);
- bool does_circle_fit_points_(circle& c) const;
- bool does_arc_fit_points(circle& c) const;
- bool try_get_arc_(const circle& c, arc& target_arc);
- bool is_point_on_arc(const arc& a, const point & p) const;
std::string get_shape_gcode_(bool has_e, double e, double f) const;
- circle arc_circle_;
+ //circle arc_circle_;
+ arc current_arc_;
double max_radius_mm_;
};