Fix: the generation of the skirt does not take the wipe_tower into account.

jira: STUDIO-10381
Change-Id: I523d366d6d569696de48f872be827d73710cb526
(cherry picked from commit 939b405c35809dbceb65e5efdc65622407065b65)
This commit is contained in:
jiangkai.zhao
2025-02-17 16:38:36 +08:00
committed by Noisyfox
parent 501388d29f
commit d1d04d395e
3 changed files with 7 additions and 6 deletions

View File

@@ -2550,9 +2550,9 @@ Points Print::first_layer_wipe_tower_corners(bool check_wipe_tower_existance) co
if (check_wipe_tower_existance && (!has_wipe_tower() || m_wipe_tower_data.tool_changes.empty()))
return corners;
{
double width = m_config.prime_tower_width + 2*m_wipe_tower_data.brim_width;
double depth = m_wipe_tower_data.depth + 2*m_wipe_tower_data.brim_width;
Vec2d pt0(-m_wipe_tower_data.brim_width, -m_wipe_tower_data.brim_width);
double width = m_wipe_tower_data.bbx.max.x() - m_wipe_tower_data.bbx.min.x();
double depth = m_wipe_tower_data.bbx.max.y() -m_wipe_tower_data.bbx.min.y();
Vec2d pt0 = m_wipe_tower_data.bbx.min;
// First the corners.
std::vector<Vec2d> pts = { pt0,