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

Function FindEdgeWithMatchingLocMin

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

Source from the content-addressed store, hash-verified

1761 }
1762
1763 Active* FindEdgeWithMatchingLocMin(Active* e)
1764 {
1765 Active* result = e->next_in_ael;
1766 while (result)
1767 {
1768 if (result->local_min == e->local_min) return result;
1769 else if (!IsHorizontal(*result) && e->bot != result->bot) result = nullptr;
1770 else result = result->next_in_ael;
1771 }
1772 result = e->prev_in_ael;
1773 while (result)
1774 {
1775 if (result->local_min == e->local_min) return result;
1776 else if (!IsHorizontal(*result) && e->bot != result->bot) return nullptr;
1777 else result = result->prev_in_ael;
1778 }
1779 return result;
1780 }
1781
1782
1783 void ClipperBase::IntersectEdges(Active& e1, Active& e2, const Point64& pt)

Callers 2

IntersectEdgesMethod · 0.85
IntersectEdgesMethod · 0.85

Calls 1

IsHorizontalFunction · 0.70

Tested by

no test coverage detected