MCPcopy Create free account
hub / github.com/AngusJohnson/Clipper2 / UpdateEdgeIntoAEL

Method UpdateEdgeIntoAEL

CPP/Clipper2Lib/src/clipper.engine.cpp:1742–1761  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1740
1741
1742 inline void ClipperBase::UpdateEdgeIntoAEL(Active* e)
1743 {
1744 e->bot = e->top;
1745 e->vertex_top = NextVertex(*e);
1746 e->top = e->vertex_top->pt;
1747 e->curr_x = e->bot.x;
1748 SetDx(*e);
1749
1750 if (IsJoined(*e)) Split(*e, e->bot);
1751
1752 if (IsHorizontal(*e))
1753 {
1754 if (!IsOpen(*e)) TrimHorz(*e, preserve_collinear_);
1755 return;
1756 }
1757
1758 InsertScanline(e->top.y);
1759 CheckJoinLeft(*e, e->bot);
1760 CheckJoinRight(*e, e->bot, true); // (#500)
1761 }
1762
1763 Active* FindEdgeWithMatchingLocMin(Active* e)
1764 {

Callers

nothing calls this directly

Calls 6

NextVertexFunction · 0.85
SetDxFunction · 0.85
IsJoinedFunction · 0.85
IsOpenFunction · 0.85
TrimHorzFunction · 0.85
IsHorizontalFunction · 0.70

Tested by

no test coverage detected