File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1169,6 +1169,7 @@ FffGcodeWriter::ProcessLayerResult FffGcodeWriter::processLayer(const SliceDataS
11691169
11701170 const Scene& scene = Application::getInstance ().current_slice_ ->scene ;
11711171
1172+ coord_t comb_offset_from_outlines = 0 ;
11721173 coord_t avoid_distance = 0 ; // minimal avoid distance is zero
11731174 const std::vector<bool > extruder_is_used = storage.getExtrudersUsed ();
11741175 for (size_t extruder_nr = 0 ; extruder_nr < scene.extruders .size (); extruder_nr++)
@@ -1181,6 +1182,8 @@ FffGcodeWriter::ProcessLayerResult FffGcodeWriter::processLayer(const SliceDataS
11811182 {
11821183 avoid_distance = std::max (avoid_distance, extruder.settings_ .get <coord_t >(" travel_avoid_distance" ));
11831184 }
1185+
1186+ comb_offset_from_outlines = std::max (comb_offset_from_outlines, extruder.settings_ .get <coord_t >(" retraction_combing_avoid_distance" ));
11841187 }
11851188 }
11861189
@@ -1196,7 +1199,6 @@ FffGcodeWriter::ProcessLayerResult FffGcodeWriter::processLayer(const SliceDataS
11961199 }
11971200 max_inner_wall_width = std::max (max_inner_wall_width, mesh_inner_wall_width);
11981201 }
1199- const coord_t comb_offset_from_outlines = max_inner_wall_width * 2 ;
12001202
12011203 const size_t first_extruder = findUsedExtruderIndex (storage, layer_nr, false );
12021204
Original file line number Diff line number Diff line change @@ -196,10 +196,10 @@ Shape LayerPlan::computeCombBoundary(const CombBoundary boundary_type)
196196 switch (boundary_type)
197197 {
198198 case CombBoundary::MINIMUM:
199- offset = -mesh.settings .get <coord_t >(" machine_nozzle_size" ) / 2 - mesh.settings .get <coord_t >(" wall_line_width_0" ) / 2 - extra_offset;
199+ offset = -( mesh.settings .get <coord_t >(" machine_nozzle_size" ) / 2 + mesh.settings .get <coord_t >(" wall_line_width_0" ) / 2 + extra_offset) ;
200200 break ;
201201 case CombBoundary::PREFERRED:
202- offset = -mesh.settings .get <coord_t >(" machine_nozzle_size " ) * 3 / 2 - mesh.settings .get <coord_t >(" wall_line_width_0" ) / 2 - extra_offset;
202+ offset = -( mesh.settings .get <coord_t >(" retraction_combing_avoid_distance " ) + mesh.settings .get <coord_t >(" wall_line_width_0" ) / 2 + extra_offset) ;
203203 break ;
204204 default :
205205 offset = 0 ;
You can’t perform that action at this time.
0 commit comments