Increased resolution of G-code by one digit in XY, one digit in E.

Decreased G-code decimation 10x.
This commit is contained in:
Vojtech Bubnik 2021-11-16 15:58:03 +01:00
parent 135b3fcea8
commit 9f43d593c3
2 changed files with 3 additions and 2 deletions

View File

@ -48,7 +48,8 @@ static constexpr double EPSILON = 1e-4;
// with int64_t we don't have to worry anymore about the size of the int.
static constexpr double SCALING_FACTOR = 0.000001;
// RESOLUTION, SCALED_RESOLUTION: Used as an error threshold for a Douglas-Peucker polyline simplification algorithm.
static constexpr double RESOLUTION = 0.0125;
//static constexpr double RESOLUTION = 0.0125;
static constexpr double RESOLUTION = 0.00125;
#define SCALED_RESOLUTION (RESOLUTION / SCALING_FACTOR)
static constexpr double PI = 3.141592653589793238;
// When extruding a closed loop, the loop is interrupted and shortened a bit to reduce the seam.

View File

@ -520,7 +520,7 @@ const std::vector<GCodeViewer::Color> GCodeViewer::Travel_Colors {{
{ 0.505f, 0.064f, 0.028f, 1.0f } // Retract
}};
#if 1
#if 0
// Normal ranges
const std::vector<GCodeViewer::Color> GCodeViewer::Range_Colors {{
{ 0.043f, 0.173f, 0.478f, 1.0f }, // bluish