ENH: control local extrusiuon order of tree support

As title

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I82a17cd8f82a87a898f933b5437836667136d834
(cherry picked from commit aedfffc4565113f186a55efa0e89366880a22fc6)
This commit is contained in:
salt.wei 2022-12-09 10:37:45 +08:00 committed by Lane.Wei
parent 1428a6bec7
commit 402e03f763
1 changed files with 7 additions and 2 deletions

View File

@ -1547,9 +1547,14 @@ void TreeSupport::generate_toolpaths()
// Note: spacing means the separation between two lines as if they are tightly extruded // Note: spacing means the separation between two lines as if they are tightly extruded
filler_Roof1stLayer->spacing = m_support_material_interface_flow.spacing(); filler_Roof1stLayer->spacing = m_support_material_interface_flow.spacing();
// generate a perimeter first to support interface better // generate a perimeter first to support interface better
make_perimeter_and_infill(ts_layer->support_fills.entities, *m_object->print(), poly, 1, m_support_material_interface_flow, erSupportMaterial, ExtrusionEntityCollection* temp_support_fills = new ExtrusionEntityCollection();
make_perimeter_and_infill(temp_support_fills->entities, *m_object->print(), poly, 1, m_support_material_interface_flow, erSupportMaterial,
filler_Roof1stLayer.get(), interface_density, false); filler_Roof1stLayer.get(), interface_density, false);
ts_layer->support_fills.no_sort = true; // make sure loops are first temp_support_fills->no_sort = true; // make sure loops are first
if (!temp_support_fills->entities.empty())
ts_layer->support_fills.entities.push_back(temp_support_fills);
else
delete temp_support_fills;
} else if (area_group.type == TreeSupportLayer::FloorType) { } else if (area_group.type == TreeSupportLayer::FloorType) {
// floor_areas // floor_areas
fill_params.density = bottom_interface_density; fill_params.density = bottom_interface_density;