From 9f43d593c3e2cbd2832540a2352a5c7ccd411a13 Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Tue, 16 Nov 2021 15:58:03 +0100 Subject: [PATCH] Increased resolution of G-code by one digit in XY, one digit in E. Decreased G-code decimation 10x. --- src/libslic3r/libslic3r.h | 3 ++- src/slic3r/GUI/GCodeViewer.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libslic3r/libslic3r.h b/src/libslic3r/libslic3r.h index a294361893..8f1a975be1 100644 --- a/src/libslic3r/libslic3r.h +++ b/src/libslic3r/libslic3r.h @@ -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. diff --git a/src/slic3r/GUI/GCodeViewer.cpp b/src/slic3r/GUI/GCodeViewer.cpp index 0fd8201ea1..72d6208396 100644 --- a/src/slic3r/GUI/GCodeViewer.cpp +++ b/src/slic3r/GUI/GCodeViewer.cpp @@ -520,7 +520,7 @@ const std::vector GCodeViewer::Travel_Colors {{ { 0.505f, 0.064f, 0.028f, 1.0f } // Retract }}; -#if 1 +#if 0 // Normal ranges const std::vector GCodeViewer::Range_Colors {{ { 0.043f, 0.173f, 0.478f, 1.0f }, // bluish