| 3137 | //------------------------------------------------------------------------------ |
| 3138 | |
| 3139 | void 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 | |
| 3160 | void Clipper::BuildResult2(PolyTree& polytree) |
nothing calls this directly
no test coverage detected