Move checkbox for support alerts into AppConfig preferences.

Separate Alerts into new print object step so that not warnings are thrown for autopaint.
finally fix -1 access int SupportSpotGenerator bridge detection
This commit is contained in:
PavelMikus 2023-01-27 14:40:06 +01:00 committed by Pavel Mikuš
parent 43020d02c5
commit 05c4e759cf
12 changed files with 92 additions and 69 deletions

View file

@ -64,7 +64,7 @@ enum PrintStep : unsigned int {
enum PrintObjectStep : unsigned int {
posSlice, posPerimeters, posPrepareInfill,
posInfill, posIroning, posSupportSpotsSearch, posSupportMaterial, posEstimateCurledExtrusions, posCount,
posInfill, posIroning, posSupportSpotsSearch, posAlertWhenSupportsNeeded, posSupportMaterial, posEstimateCurledExtrusions, posCount,
};
// A PrintRegion object represents a group of volumes to print
@ -205,6 +205,7 @@ public:
struct GeneratedSupportPoints{
Transform3d object_transform; // for frontend object mapping
SupportSpotsGenerator::SupportPoints support_points;
SupportSpotsGenerator::PartialObjects partial_objects;
};
std::vector<std::unique_ptr<PrintRegion>> all_regions;
@ -370,6 +371,7 @@ private:
void infill();
void ironing();
void generate_support_spots();
void alert_when_supports_needed();
void generate_support_material();
void estimate_curled_extrusions();