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

Function GetMaximaPairEx

TheForceEngine/TFE_Polygon/clipper.cpp:2548–2555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2546//------------------------------------------------------------------------------
2547
2548TEdge *GetMaximaPairEx(TEdge *e)
2549{
2550 //as GetMaximaPair() but returns 0 if MaxPair isn't in AEL (unless it's horizontal)
2551 TEdge* result = GetMaximaPair(e);
2552 if (result && (result->OutIdx == Skip ||
2553 (result->NextInAEL == result->PrevInAEL && !IsHorizontal(*result)))) return 0;
2554 return result;
2555}
2556//------------------------------------------------------------------------------
2557
2558void Clipper::SwapPositionsInSEL(TEdge *Edge1, TEdge *Edge2)

Callers 2

DoMaximaMethod · 0.85

Calls 2

GetMaximaPairFunction · 0.85
IsHorizontalFunction · 0.85

Tested by

no test coverage detected