| 4458 | }; |
| 4459 | |
| 4460 | void AddPolyNodeToPaths(const PolyNode& polynode, NodeType nodetype, Paths& paths) |
| 4461 | { |
| 4462 | bool match = true; |
| 4463 | if (nodetype == ntClosed) |
| 4464 | match = !polynode.IsOpen(); |
| 4465 | else if (nodetype == ntOpen) |
| 4466 | return; |
| 4467 | |
| 4468 | if (!polynode.Contour.empty() && match) |
| 4469 | paths.push_back(polynode.Contour); |
| 4470 | for (size_t i = 0; i < polynode.ChildCount(); ++i) |
| 4471 | AddPolyNodeToPaths(*polynode.Childs[i], nodetype, paths); |
| 4472 | } |
| 4473 | //------------------------------------------------------------------------------ |
| 4474 | |
| 4475 | void PolyTreeToPaths(const PolyTree& polytree, Paths& paths) |
no test coverage detected