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:
Diffstat (limited to 'PyArcWelder/py_arc_welder_extension.h')
-rw-r--r--PyArcWelder/py_arc_welder_extension.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/PyArcWelder/py_arc_welder_extension.h b/PyArcWelder/py_arc_welder_extension.h
index 068621b..84e50ec 100644
--- a/PyArcWelder/py_arc_welder_extension.h
+++ b/PyArcWelder/py_arc_welder_extension.h
@@ -46,14 +46,24 @@ struct py_gcode_arc_args {
source_file_path = "";
target_file_path = "";
resolution_mm = DEFAULT_RESOLUTION_MM;
+ path_tolerance_percent = ARC_LENGTH_PERCENT_TOLERANCE_DEFAULT;
max_radius_mm = DEFAULT_MAX_RADIUS_MM;
g90_g91_influences_extruder = DEFAULT_G90_G91_INFLUENCES_EXTREUDER;
log_level = 0;
}
- py_gcode_arc_args(std::string source_file_path_, std::string target_file_path_, double resolution_mm_, double max_radius_mm_, bool g90_g91_influences_extruder_, int log_level_) {
+ py_gcode_arc_args(
+ std::string source_file_path_,
+ std::string target_file_path_,
+ double resolution_mm_,
+ double path_tolerance_percent_,
+ double max_radius_mm_,
+ bool g90_g91_influences_extruder_,
+ int log_level_
+ ) {
source_file_path = source_file_path_;
target_file_path = target_file_path_;
resolution_mm = resolution_mm_;
+ path_tolerance_percent = path_tolerance_percent_;
max_radius_mm = max_radius_mm_;
g90_g91_influences_extruder = g90_g91_influences_extruder_;
log_level = log_level_;
@@ -61,6 +71,7 @@ struct py_gcode_arc_args {
std::string source_file_path;
std::string target_file_path;
double resolution_mm;
+ double path_tolerance_percent;
bool g90_g91_influences_extruder;
double max_radius_mm;
int log_level;