mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Wipe tower brim width is now part of WipeTowerData class, so it can be used wherever needed
This commit is contained in:
parent
aba743de41
commit
fdf9272fbe
6 changed files with 40 additions and 18 deletions
|
@ -179,8 +179,8 @@ std::vector<Vec2d> get_wipe_tower_extrusions_points(const Print &print, const co
|
|||
const WipeTower::Extrusion &e = tcr.extrusions[i];
|
||||
if (e.width > 0) {
|
||||
Vec2d delta = 0.5 * Vec2d(e.width, e.width);
|
||||
Vec2d p1 = Vec2d((&e - 1)->pos.x, (&e - 1)->pos.y);
|
||||
Vec2d p2 = Vec2d(e.pos.x, e.pos.y);
|
||||
Vec2d p1 = Vec2d((&e - 1)->pos.x(), (&e - 1)->pos.y());
|
||||
Vec2d p2 = Vec2d(e.pos.x(), e.pos.y());
|
||||
bbox.merge(p1.cwiseMin(p2) - delta);
|
||||
bbox.merge(p1.cwiseMax(p2) + delta);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue