| 4343 | //------------------------------------------------------------------------------ |
| 4344 | |
| 4345 | void OpenPathsFromPolyTree(PolyTree &polytree, Paths &paths) { |
| 4346 | paths.resize(0); |
| 4347 | paths.reserve(polytree.Total()); |
| 4348 | // Open paths are top level only, so ... |
| 4349 | for (int i = 0; i < polytree.ChildCount(); ++i) |
| 4350 | if (polytree.Childs[i]->IsOpen()) |
| 4351 | paths.push_back(polytree.Childs[i]->Contour); |
| 4352 | } |
| 4353 | //------------------------------------------------------------------------------ |
| 4354 | |
| 4355 | std::ostream &operator<<(std::ostream &s, const IntPoint &p) { |
nothing calls this directly
no test coverage detected