MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / UpdateEdgeIntoAEL

Method UpdateEdgeIntoAEL

TheForceEngine/TFE_Polygon/clipper.cpp:1442–1462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1440//------------------------------------------------------------------------------
1441
1442void ClipperBase::UpdateEdgeIntoAEL(TEdge *&e)
1443{
1444 if (!e->NextInLML)
1445 throw clipperException("UpdateEdgeIntoAEL: invalid call");
1446
1447 e->NextInLML->OutIdx = e->OutIdx;
1448 TEdge* AelPrev = e->PrevInAEL;
1449 TEdge* AelNext = e->NextInAEL;
1450 if (AelPrev) AelPrev->NextInAEL = e->NextInLML;
1451 else m_ActiveEdges = e->NextInLML;
1452 if (AelNext) AelNext->PrevInAEL = e->NextInLML;
1453 e->NextInLML->Side = e->Side;
1454 e->NextInLML->WindDelta = e->WindDelta;
1455 e->NextInLML->WindCnt = e->WindCnt;
1456 e->NextInLML->WindCnt2 = e->WindCnt2;
1457 e = e->NextInLML;
1458 e->Curr = e->Bot;
1459 e->PrevInAEL = AelPrev;
1460 e->NextInAEL = AelNext;
1461 if (!IsHorizontal(*e)) InsertScanbeam(e->Top.Y);
1462}
1463//------------------------------------------------------------------------------
1464
1465bool ClipperBase::LocalMinimaPending()

Callers

nothing calls this directly

Calls 2

clipperExceptionClass · 0.85
IsHorizontalFunction · 0.85

Tested by

no test coverage detected