diff options
Diffstat (limited to 'PyArcWelder/py_arc_welder_extension.h')
-rw-r--r-- | PyArcWelder/py_arc_welder_extension.h | 71 |
1 files changed, 1 insertions, 70 deletions
diff --git a/PyArcWelder/py_arc_welder_extension.h b/PyArcWelder/py_arc_welder_extension.h index 2212748..b71f680 100644 --- a/PyArcWelder/py_arc_welder_extension.h +++ b/PyArcWelder/py_arc_welder_extension.h @@ -29,6 +29,7 @@ #include <Python.h> #endif #include <string> +#include "py_arc_welder.h" #include "py_logger.h" #include "arc_welder.h" extern "C" @@ -41,76 +42,6 @@ extern "C" static PyObject* ConvertFile(PyObject* self, PyObject* args); } -struct py_gcode_arc_args { - py_gcode_arc_args() { - guid = ""; - source_path = ""; - target_path = ""; - resolution_mm = DEFAULT_RESOLUTION_MM; - path_tolerance_percent = ARC_LENGTH_PERCENT_TOLERANCE_DEFAULT; - max_radius_mm = DEFAULT_MAX_RADIUS_MM; - min_arc_segments = DEFAULT_MIN_ARC_SEGMENTS; - mm_per_arc_segment = DEFAULT_MM_PER_ARC_SEGMENT; - g90_g91_influences_extruder = DEFAULT_G90_G91_INFLUENCES_EXTREUDER; - allow_3d_arcs = DEFAULT_ALLOW_3D_ARCS; - allow_travel_arcs = DEFAULT_ALLOW_TRAVEL_ARCS; - log_level = 0; - } - py_gcode_arc_args( - std::string guid_, - std::string source_path_, - std::string target_path_, - double resolution_mm_, - double path_tolerance_percent_, - double max_radius_mm_, - int min_arc_segments_, - double mm_per_arc_segment_, - bool g90_g91_influences_extruder_, - bool allow_3d_arcs_, - bool allow_travel_arcs_, - bool allow_dynamic_precision_, - unsigned char default_xyz_precision_, - unsigned char default_e_precision_, - double extrusion_rate_variance_percent_, - int log_level_ - ) { - guid = guid_; - source_path = source_path_; - target_path = target_path_; - resolution_mm = resolution_mm_; - path_tolerance_percent = path_tolerance_percent_; - max_radius_mm = max_radius_mm_; - min_arc_segments = min_arc_segments_; - mm_per_arc_segment = mm_per_arc_segment_; - allow_3d_arcs = allow_3d_arcs_; - allow_travel_arcs = allow_travel_arcs_; - allow_dynamic_precision = allow_dynamic_precision_; - default_xyz_precision = default_xyz_precision_; - default_e_precision = default_e_precision_; - extrusion_rate_variance_percent = extrusion_rate_variance_percent_; - g90_g91_influences_extruder = g90_g91_influences_extruder_; - log_level = log_level_; - } - std::string guid; - std::string source_path; - std::string target_path; - double resolution_mm; - double path_tolerance_percent; - bool allow_3d_arcs; - bool allow_travel_arcs; - bool allow_dynamic_precision; - unsigned char default_xyz_precision; - unsigned char default_e_precision; - double extrusion_rate_variance_percent; - bool g90_g91_influences_extruder; - double max_radius_mm; - int min_arc_segments; - double mm_per_arc_segment; - int log_level; -}; - -static bool ParseArgs(PyObject* py_args, py_gcode_arc_args& args, PyObject** p_py_progress_callback); - // global logger py_logger* p_py_logger = NULL; /* |