mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-21 11:34:25 +08:00
fix ironing on support material interface
This commit is contained in:
parent
1a19b023f0
commit
95b546e47d
@ -68,7 +68,8 @@ void ExtrusionPath::polygons_covered_by_spacing(Polygons &out, const float scale
|
|||||||
{
|
{
|
||||||
// Instantiating the Flow class to get the line spacing.
|
// Instantiating the Flow class to get the line spacing.
|
||||||
// Don't know the nozzle diameter, setting to zero. It shall not matter it shall be optimized out by the compiler.
|
// Don't know the nozzle diameter, setting to zero. It shall not matter it shall be optimized out by the compiler.
|
||||||
Flow flow(this->width, this->height, 0.f, is_bridge(this->role()));
|
// if the spacing is negative, use the width instead. can happen on ironing second pass.
|
||||||
|
Flow flow(this->width, this->height, 0.f, (this->width*4 < this->height)?true:is_bridge(this->role()));
|
||||||
polygons_append(out, offset(this->polyline, 0.5f * double(flow.scaled_spacing()) + scaled_epsilon));
|
polygons_append(out, offset(this->polyline, 0.5f * double(flow.scaled_spacing()) + scaled_epsilon));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -132,7 +132,8 @@ namespace Slic3r {
|
|||||||
|
|
||||||
// first infill
|
// first infill
|
||||||
FillParams first_pass_params = params;
|
FillParams first_pass_params = params;
|
||||||
first_pass_params.role = ExtrusionRole::erSolidInfill;
|
if(first_pass_params.role != ExtrusionRole::erSupportMaterial && first_pass_params.role != ExtrusionRole::erSupportMaterialInterface)
|
||||||
|
first_pass_params.role = ExtrusionRole::erSolidInfill;
|
||||||
perform_single_fill(0, *eecroot, *surface, first_pass_params, volumeToOccupy);
|
perform_single_fill(0, *eecroot, *surface, first_pass_params, volumeToOccupy);
|
||||||
|
|
||||||
//use monotonic for ironing pass
|
//use monotonic for ironing pass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user