mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-25 03:42:05 +00:00
ENH: add timelapse gcode for multi_extruder
and add most used_extruder for print by object jira:none Change-Id: I021069e865992828b098d73c0d704ba7edbd55d8 (cherry picked from commit ae62f7b8e4b4258318c0d941963eddfb70e86c15)
This commit is contained in:
@@ -235,6 +235,7 @@ public:
|
||||
std::vector<LayerTools>& layer_tools() { return m_layer_tools; }
|
||||
bool has_wipe_tower() const { return ! m_layer_tools.empty() && m_first_printing_extruder != (unsigned int)-1 && m_layer_tools.front().has_wipe_tower; }
|
||||
|
||||
int get_most_used_extruder() const { return most_used_extruder; }
|
||||
/*
|
||||
* called in single extruder mode, the value in map are all 0
|
||||
* called in dual extruder mode, the value in map will be 0 or 1
|
||||
@@ -246,7 +247,7 @@ public:
|
||||
|
||||
// should be called after doing reorder
|
||||
FilamentChangeStats get_filament_change_stats(FilamentChangeMode mode);
|
||||
std::vector<int> cal_most_used_extruder(const PrintConfig &config);
|
||||
void cal_most_used_extruder(const PrintConfig &config);
|
||||
bool cal_non_support_filaments(const PrintConfig &config,
|
||||
unsigned int & first_non_support_filament,
|
||||
std::vector<int> & initial_non_support_filaments,
|
||||
@@ -283,6 +284,8 @@ private:
|
||||
FilamentChangeStats m_stats_by_single_extruder;
|
||||
FilamentChangeStats m_stats_by_multi_extruder_curr;
|
||||
FilamentChangeStats m_stats_by_multi_extruder_best;
|
||||
|
||||
int most_used_extruder;
|
||||
};
|
||||
|
||||
} // namespace SLic3r
|
||||
|
||||
Reference in New Issue
Block a user