//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Arc Welder: Anti-Stutter Python Extension for the OctoPrint Arc Welder plugin. // // Compresses many G0/G1 commands into G2/G3(arc) commands where possible, ensuring the tool paths stay within the specified resolution. // This reduces file size and the number of gcodes per second. // // Copyright(C) 2021 - Brad Hochgesang //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // This program is free software : you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published // by the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the // GNU Affero General Public License for more details. // // // You can contact the author at the following email address: // FormerLurker@pm.me //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// #pragma once #ifdef _DEBUG #undef _DEBUG #include #define _DEBUG #else #include #endif #include #include "py_arc_welder.h" #include "py_logger.h" #include "arc_welder.h" extern "C" { #if PY_MAJOR_VERSION >= 3 PyMODINIT_FUNC PyInit_PyArcWelder(void); #else extern "C" void initPyArcWelder(void); #endif static PyObject* ConvertFile(PyObject* self, PyObject* args); } // global logger py_logger* p_py_logger = NULL; /* static void AtExit() { if (p_py_logger != NULL) delete p_py_logger; }*/