MCPcopy Create free account
hub / github.com/XRay3D/GERBER_X3 / ProcessIntersections

Method ProcessIntersections

static_libs/clipper/clipper.cpp:2805–2825  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2803//------------------------------------------------------------------------------
2804
2805bool Clipper::ProcessIntersections(const cInt topY)
2806{
2807 if (!m_ActiveEdges)
2808 return true;
2809 try {
2810 BuildIntersectList(topY);
2811 size_t IlSize = m_IntersectList.size();
2812 if (IlSize == 0)
2813 return true;
2814 if (IlSize == 1 || FixupIntersectionOrder())
2815 ProcessIntersectList();
2816 else
2817 return false;
2818 } catch (...) {
2819 m_SortedEdges = nullptr;
2820 DisposeIntersectNodes();
2821 throw clipperException("ProcessIntersections error");
2822 }
2823 m_SortedEdges = nullptr;
2824 return true;
2825}
2826//------------------------------------------------------------------------------
2827
2828void Clipper::DisposeIntersectNodes()

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.80
clipperExceptionClass · 0.70

Tested by

no test coverage detected