mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
FIX: wipe tpwer should be no_brim_area
jira-id: none Change-Id: Ia8b9c1639a62d90421932594b3709eba71b5e723 (cherry picked from commit 68eb40bc74d75fece451ed3b4b4b767b46c238b3) (cherry picked from commit e684f8fcc67464f852f61cb5b7389dfd3491982b)
This commit is contained in:
@@ -1103,6 +1103,16 @@ static ExPolygons outer_inner_brim_area(const Print& print,
|
|||||||
}
|
}
|
||||||
std::vector<int> filament_map = print.get_filament_maps();
|
std::vector<int> filament_map = print.get_filament_maps();
|
||||||
|
|
||||||
|
if (print.has_wipe_tower() && !print.get_fake_wipe_tower().outer_wall.empty()) {
|
||||||
|
ExPolygons expolyFromLines{};
|
||||||
|
for (auto polyline : print.get_fake_wipe_tower().outer_wall.begin()->second) {
|
||||||
|
polyline.remove_duplicate_points();
|
||||||
|
expolyFromLines.emplace_back(polyline.points);
|
||||||
|
expolyFromLines.back().translate(Point(scale_(print.get_fake_wipe_tower().pos[0]), scale_(print.get_fake_wipe_tower().pos[1])));
|
||||||
|
}
|
||||||
|
expolygons_append(no_brim_area, expolyFromLines);
|
||||||
|
}
|
||||||
|
|
||||||
for (const PrintObject* object : print.objects()) {
|
for (const PrintObject* object : print.objects()) {
|
||||||
ExPolygons extruder_no_brim_area = no_brim_area;
|
ExPolygons extruder_no_brim_area = no_brim_area;
|
||||||
auto iter = std::find_if(objPrintVec.begin(), objPrintVec.end(), [object](const std::pair<ObjectID, unsigned int>& item) {
|
auto iter = std::find_if(objPrintVec.begin(), objPrintVec.end(), [object](const std::pair<ObjectID, unsigned int>& item) {
|
||||||
|
|||||||
@@ -2123,6 +2123,11 @@ void Print::process(long long *time_cost_with_cache, bool use_cache)
|
|||||||
}
|
}
|
||||||
this->set_done(psWipeTower);
|
this->set_done(psWipeTower);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this->has_wipe_tower()) {
|
||||||
|
m_fake_wipe_tower.set_pos({ m_config.wipe_tower_x.get_at(m_plate_index), m_config.wipe_tower_y.get_at(m_plate_index) });
|
||||||
|
}
|
||||||
|
|
||||||
if (this->set_started(psSkirtBrim)) {
|
if (this->set_started(psSkirtBrim)) {
|
||||||
this->set_status(70, L("Generating skirt & brim"));
|
this->set_status(70, L("Generating skirt & brim"));
|
||||||
|
|
||||||
|
|||||||
@@ -1048,6 +1048,7 @@ public:
|
|||||||
float get_wipe_tower_depth() const { return m_wipe_tower_data.depth; }
|
float get_wipe_tower_depth() const { return m_wipe_tower_data.depth; }
|
||||||
BoundingBoxf get_wipe_tower_bbx() const { return m_wipe_tower_data.bbx; }
|
BoundingBoxf get_wipe_tower_bbx() const { return m_wipe_tower_data.bbx; }
|
||||||
Vec2f get_rib_offset() const { return m_wipe_tower_data.rib_offset; }
|
Vec2f get_rib_offset() const { return m_wipe_tower_data.rib_offset; }
|
||||||
|
const FakeWipeTower& get_fake_wipe_tower() const { return m_fake_wipe_tower; }
|
||||||
|
|
||||||
void set_check_multi_filaments_compatibility(bool check) { m_need_check_multi_filaments_compatibility = check; }
|
void set_check_multi_filaments_compatibility(bool check) { m_need_check_multi_filaments_compatibility = check; }
|
||||||
bool need_check_multi_filaments_compatibility() const { return m_need_check_multi_filaments_compatibility; }
|
bool need_check_multi_filaments_compatibility() const { return m_need_check_multi_filaments_compatibility; }
|
||||||
|
|||||||
Reference in New Issue
Block a user