mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-16 16:15:54 +08:00
Increased resolution of G-code by one digit in XY, one digit in E.
Decreased G-code decimation 10x.
This commit is contained in:
parent
135b3fcea8
commit
9f43d593c3
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user