mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 05:15:59 +08:00
Backport fix for the misaligned duplicate point on cylinders.
This commit is contained in:
parent
560c54f3ef
commit
1872b4f404
@ -2649,7 +2649,7 @@ void Clipper::ProcessEdgesAtTopOfScanbeam(const cInt topY)
|
|||||||
if (ePrev && ePrev->Curr.x() == e->Bot.x() &&
|
if (ePrev && ePrev->Curr.x() == e->Bot.x() &&
|
||||||
ePrev->Curr.y() == e->Bot.y() && op &&
|
ePrev->Curr.y() == e->Bot.y() && op &&
|
||||||
ePrev->OutIdx >= 0 && ePrev->Curr.y() > ePrev->Top.y() &&
|
ePrev->OutIdx >= 0 && ePrev->Curr.y() > ePrev->Top.y() &&
|
||||||
SlopesEqual(*e, *ePrev, m_UseFullRange) &&
|
SlopesEqual(e->Curr, e->Top, ePrev->Curr, ePrev->Top, m_UseFullRange) &&
|
||||||
(e->WindDelta != 0) && (ePrev->WindDelta != 0))
|
(e->WindDelta != 0) && (ePrev->WindDelta != 0))
|
||||||
{
|
{
|
||||||
OutPt* op2 = AddOutPt(ePrev, e->Bot);
|
OutPt* op2 = AddOutPt(ePrev, e->Bot);
|
||||||
@ -2658,7 +2658,7 @@ void Clipper::ProcessEdgesAtTopOfScanbeam(const cInt topY)
|
|||||||
else if (eNext && eNext->Curr.x() == e->Bot.x() &&
|
else if (eNext && eNext->Curr.x() == e->Bot.x() &&
|
||||||
eNext->Curr.y() == e->Bot.y() && op &&
|
eNext->Curr.y() == e->Bot.y() && op &&
|
||||||
eNext->OutIdx >= 0 && eNext->Curr.y() > eNext->Top.y() &&
|
eNext->OutIdx >= 0 && eNext->Curr.y() > eNext->Top.y() &&
|
||||||
SlopesEqual(*e, *eNext, m_UseFullRange) &&
|
SlopesEqual(e->Curr, e->Top, eNext->Curr, eNext->Top, m_UseFullRange) &&
|
||||||
(e->WindDelta != 0) && (eNext->WindDelta != 0))
|
(e->WindDelta != 0) && (eNext->WindDelta != 0))
|
||||||
{
|
{
|
||||||
OutPt* op2 = AddOutPt(eNext, e->Bot);
|
OutPt* op2 = AddOutPt(eNext, e->Bot);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user