| 4589 | //------------------------------------------------------------------------------ |
| 4590 | |
| 4591 | void OpenPathsFromPolyTree(PolyTree& polytree, Paths& paths) |
| 4592 | { |
| 4593 | paths.resize(0); |
| 4594 | paths.reserve(polytree.Total()); |
| 4595 | //Open paths are top level only, so ... |
| 4596 | for (int i = 0; i < polytree.ChildCount(); ++i) |
| 4597 | if (polytree.Childs[i]->IsOpen()) |
| 4598 | paths.push_back(polytree.Childs[i]->Contour); |
| 4599 | } |
| 4600 | //------------------------------------------------------------------------------ |
| 4601 | |
| 4602 | std::ostream& operator <<(std::ostream &s, const IntPoint &p) |