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

Method BuildResult

static_libs/clipper/clipper.cpp:3139–3157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3137//------------------------------------------------------------------------------
3138
3139void Clipper::BuildResult(Paths& polys)
3140{
3141 polys.reserve(m_PolyOuts.size());
3142 for (PolyOutList::size_type i = 0; i < m_PolyOuts.size(); ++i) {
3143 if (!m_PolyOuts[i]->Pts)
3144 continue;
3145 Path pg;
3146 OutPt* p = m_PolyOuts[i]->Pts->Prev;
3147 int cnt = PointCount(p);
3148 if (cnt < 2)
3149 continue;
3150 pg.reserve(cnt);
3151 for (int j = 0; j < cnt; ++j) {
3152 pg.push_back(p->Pt);
3153 p = p->Prev;
3154 }
3155 polys.push_back(pg);
3156 }
3157}
3158//------------------------------------------------------------------------------
3159
3160void Clipper::BuildResult2(PolyTree& polytree)

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.80
PointCountFunction · 0.70
push_backMethod · 0.45

Tested by

no test coverage detected