mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 23:46:24 -06:00
ENH: add slice_closing_radius back
For github issue #182 Signed-off-by: salt.wei <salt.wei@bambulab.com> Change-Id: I38c69bed03b6d70cb21d58b5f724b4dc3a8992a4
This commit is contained in:
parent
1a3a01a39f
commit
72221d2760
8 changed files with 24 additions and 7 deletions
|
@ -136,7 +136,7 @@ static std::vector<VolumeSlices> slice_volumes_inner(
|
|||
slicing_ranges.reserve(layer_ranges.size());
|
||||
|
||||
MeshSlicingParamsEx params_base;
|
||||
params_base.closing_radius = g_config_slice_closing_radius;
|
||||
params_base.closing_radius = print_object_config.slice_closing_radius.value;
|
||||
params_base.extra_offset = 0;
|
||||
params_base.trafo = object_trafo;
|
||||
//BBS: 0.0025mm is safe enough to simplify the data to speed slicing up for high-resolution model.
|
||||
|
@ -1040,7 +1040,7 @@ void PrintObject::slice_volumes()
|
|||
if (min_growth < 0.f || elfoot > 0.f) {
|
||||
// Apply the negative XY compensation. (the ones that is <0)
|
||||
ExPolygons trimming;
|
||||
static const float eps = float(scale_(g_config_slice_closing_radius) * 1.5);
|
||||
static const float eps = float(scale_(m_config.slice_closing_radius.value) * 1.5);
|
||||
if (elfoot > 0.f) {
|
||||
lslices_1st_layer = offset_ex(layer->merged(eps), -eps);
|
||||
trimming = Slic3r::elephant_foot_compensation(lslices_1st_layer,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue