Wiping into infill should respect infill_first setting, marking moved to separate function

This commit is contained in:
Lukas Matena 2018-05-30 11:56:30 +02:00
parent 549351bbb4
commit 8bdbe41505
5 changed files with 64 additions and 45 deletions

View file

@ -309,11 +309,16 @@ public:
void restart() { m_canceled = false; }
// Has the calculation been canceled?
bool canceled() { return m_canceled; }
private:
bool invalidate_state_by_config_options(const std::vector<t_config_option_key> &opt_keys);
PrintRegionConfig _region_config_from_model_volume(const ModelVolume &volume);
// This function goes through all infill entities, decides which ones will be used for wiping and
// marks them by the extruder id. Returns volume that remains to be wiped on the wipe tower:
float mark_wiping_infill(const ToolOrdering::LayerTools& layer_tools, unsigned int new_extruder, float volume_to_wipe);
// Has the calculation been canceled?
tbb::atomic<bool> m_canceled;
};