mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-16 06:05:55 +08:00
fix build
This commit is contained in:
parent
3f8e664ed9
commit
e215797af4
@ -221,7 +221,6 @@ print_settings_id =
|
|||||||
raft_layers = 0
|
raft_layers = 0
|
||||||
seam_position = near
|
seam_position = near
|
||||||
seam_travel_cost = 20%
|
seam_travel_cost = 20%
|
||||||
single_extruder_multi_material_priming = 1
|
|
||||||
skirts = 1
|
skirts = 1
|
||||||
skirt_distance = 2
|
skirt_distance = 2
|
||||||
skirt_height = 2
|
skirt_height = 2
|
||||||
|
@ -47,13 +47,21 @@ static constexpr double EPSILON = 1e-4;
|
|||||||
// int32_t fits an interval of (-2147.48mm, +2147.48mm)
|
// int32_t fits an interval of (-2147.48mm, +2147.48mm)
|
||||||
// with int64_t we don't have to worry anymore about the size of the int.
|
// with int64_t we don't have to worry anymore about the size of the int.
|
||||||
static constexpr double SCALING_FACTOR = 0.000001;
|
static constexpr double SCALING_FACTOR = 0.000001;
|
||||||
|
#ifdef __linux__
|
||||||
|
static constexpr double UNSCALING_FACTOR = 1000000;
|
||||||
|
#else
|
||||||
static constexpr double UNSCALING_FACTOR = 1 / SCALING_FACTOR;
|
static constexpr double UNSCALING_FACTOR = 1 / SCALING_FACTOR;
|
||||||
|
#endif
|
||||||
// RESOLUTION, SCALED_RESOLUTION: Used as an error threshold for a Douglas-Peucker polyline simplification algorithm.
|
// RESOLUTION, SCALED_RESOLUTION: Used as an error threshold for a Douglas-Peucker polyline simplification algorithm.
|
||||||
//#define RESOLUTION 0.0125
|
//#define RESOLUTION 0.0125
|
||||||
//#define SCALED_RESOLUTION 12500
|
//#define SCALED_RESOLUTION 12500
|
||||||
//#define SCALED_RESOLUTION (RESOLUTION / SCALING_FACTOR)
|
//#define SCALED_RESOLUTION (RESOLUTION / SCALING_FACTOR)
|
||||||
static constexpr coordf_t RESOLUTION = 0.0125;
|
static constexpr coordf_t RESOLUTION = 0.0125;
|
||||||
|
#ifdef __linux__
|
||||||
|
static constexpr coord_t SCALED_RESOLUTION = 12500;
|
||||||
|
#else
|
||||||
static constexpr coord_t SCALED_RESOLUTION = 0.0125 * UNSCALING_FACTOR;
|
static constexpr coord_t SCALED_RESOLUTION = 0.0125 * UNSCALING_FACTOR;
|
||||||
|
#endif
|
||||||
//for creating circles (for brim_ear)
|
//for creating circles (for brim_ear)
|
||||||
#define POLY_SIDES 24
|
#define POLY_SIDES 24
|
||||||
#define PI 3.141592653589793238
|
#define PI 3.141592653589793238
|
||||||
|
Loading…
x
Reference in New Issue
Block a user