FIX: modify some default support params in code

1. Modify default values of some supports params, so 3rd party profiles are easier to setup.
3. Fix a bug that organic support may cause crash.

Jira: none

Change-Id: Icae348d8fe5985f4287404e96089198a499283f2
(cherry picked from commit 8889cfc703b72e142f288e525b89c87619f2213c)
This commit is contained in:
Arthur
2023-11-03 15:31:30 +08:00
committed by Lane.Wei
parent 575f188436
commit 134f083bdb
2 changed files with 5 additions and 5 deletions

View File

@@ -3083,7 +3083,7 @@ static void finalize_interface_and_support_areas(
[&](const tbb::blocked_range<size_t> &range) {
for (size_t layer_idx = range.begin(); layer_idx < range.end(); ++ layer_idx) {
// Subtract support lines of the branches from the roof
SupportGeneratorLayer *support_roof = top_contacts[layer_idx];
SupportGeneratorLayer* support_roof = layer_idx < top_contacts.size() ? top_contacts[layer_idx] : nullptr;
Polygons support_roof_polygons;
if (Polygons &src = support_roof_storage[layer_idx]; ! src.empty()) {
if (support_roof != nullptr && ! support_roof->polygons.empty()) {