ENH: reduce infill margin for small nozzle
Small nozzle has higher print accuracy. Reduce infill margin to improve bridge overlap quality. Signed-off-by: salt.wei <salt.wei@bambulab.com> Change-Id: I5321c2fe1fe5c3d6422c5f11e8c9f0b82b9ba5bd
This commit is contained in:
parent
6d8887e858
commit
fac58ccefa
|
@ -116,7 +116,9 @@ void LayerRegion::make_perimeters(const SurfaceCollection &slices, SurfaceCollec
|
||||||
void LayerRegion::process_external_surfaces(const Layer *lower_layer, const Polygons *lower_layer_covered)
|
void LayerRegion::process_external_surfaces(const Layer *lower_layer, const Polygons *lower_layer_covered)
|
||||||
{
|
{
|
||||||
const bool has_infill = this->region().config().sparse_infill_density.value > 0.;
|
const bool has_infill = this->region().config().sparse_infill_density.value > 0.;
|
||||||
const float margin = float(scale_(EXTERNAL_INFILL_MARGIN));
|
//BBS
|
||||||
|
auto nozzle_diameter = this->region().nozzle_dmr_avg(this->layer()->object()->print()->config());
|
||||||
|
const float margin = std::min(float(scale_(EXTERNAL_INFILL_MARGIN)), float(scale_(nozzle_diameter * EXTERNAL_INFILL_MARGIN / 0.4)));
|
||||||
|
|
||||||
// BBS
|
// BBS
|
||||||
const PrintObjectConfig& object_config = this->layer()->object()->config();
|
const PrintObjectConfig& object_config = this->layer()->object()->config();
|
||||||
|
|
Loading…
Reference in New Issue