MCPcopy Create free account
hub / github.com/Tencent/TNN / AddLocalMaxPoly

Method AddLocalMaxPoly

examples/utils/clipper.cc:1884–1897  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1882//------------------------------------------------------------------------------
1883
1884 void Clipper::AddLocalMaxPoly(TEdge *e1, TEdge *e2, const IntPoint &Pt)
1885 {
1886 AddOutPt( e1, Pt );
1887 if (e2->WindDelta == 0) AddOutPt(e2, Pt);
1888 if( e1->OutIdx == e2->OutIdx )
1889 {
1890 e1->OutIdx = Unassigned;
1891 e2->OutIdx = Unassigned;
1892 }
1893 else if (e1->OutIdx < e2->OutIdx)
1894 AppendPolygon(e1, e2);
1895 else
1896 AppendPolygon(e2, e1);
1897 }
1898//------------------------------------------------------------------------------
1899
1900 void Clipper::AddEdgeToSEL(TEdge *edge)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected