FIX: The paint on the top surface is embedded in the sparse fill

Change-Id: I5e95bd22684d79413322fce2924fa4ff8f668c0e
This commit is contained in:
zhimin.zeng 2023-02-27 18:52:13 +08:00 committed by Lane.Wei
parent 8669291aad
commit ebaf87f033
1 changed files with 1 additions and 1 deletions

View File

@ -1575,7 +1575,7 @@ static inline std::vector<std::vector<ExPolygons>> mmu_segmentation_top_and_bott
append(triangles_by_color_top[color_idx][layer_idx + layer_idx_offset], top_ex); append(triangles_by_color_top[color_idx][layer_idx + layer_idx_offset], top_ex);
float offset = 0.f; float offset = 0.f;
ExPolygons layer_slices_trimmed = input_expolygons[layer_idx]; ExPolygons layer_slices_trimmed = input_expolygons[layer_idx];
for (int last_idx = int(layer_idx) - 1; last_idx >= std::max(int(layer_idx - stat.top_shell_layers), int(0)); --last_idx) { for (int last_idx = int(layer_idx) - 1; last_idx > std::max(int(layer_idx - stat.top_shell_layers), int(0)); --last_idx) {
//BBS: offset width should be 2*spacing to avoid too narrow area which has overlap of wall line //BBS: offset width should be 2*spacing to avoid too narrow area which has overlap of wall line
//offset -= stat.extrusion_width ; //offset -= stat.extrusion_width ;
offset -= (stat.extrusion_spacing + stat.extrusion_width); offset -= (stat.extrusion_spacing + stat.extrusion_width);