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

Method StartOpenPath

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

Source from the content-addressed store, hash-verified

1694
1695
1696 OutPt* ClipperBase::StartOpenPath(Active& e, const Point64& pt)
1697 {
1698 OutRec* outrec = NewOutRec();
1699 outrec->is_open = true;
1700
1701 if (e.wind_dx > 0)
1702 {
1703 outrec->front_edge = &e;
1704 outrec->back_edge = nullptr;
1705 }
1706 else
1707 {
1708 outrec->front_edge = nullptr;
1709 outrec->back_edge = &e;
1710 }
1711
1712 e.outrec = outrec;
1713
1714 OutPt* op = new OutPt(pt, outrec);
1715 outrec->pts = op;
1716 return op;
1717 }
1718
1719 inline void TrimHorz(Active& horzEdge, bool preserveCollinear)
1720 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected