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

Function OpenPathsFromPolyTree

static_libs/clipper/clipper.cpp:4491–4499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4489//------------------------------------------------------------------------------
4490
4491void OpenPathsFromPolyTree(const PolyTree& polytree, Paths& paths)
4492{
4493 paths.resize(0);
4494 paths.reserve(polytree.Total());
4495 //Open paths are top level only, so ...
4496 for (size_t i = 0; i < polytree.ChildCount(); ++i)
4497 if (polytree.Childs[i]->IsOpen())
4498 paths.push_back(polytree.Childs[i]->Contour);
4499}
4500//------------------------------------------------------------------------------
4501
4502std::ostream& operator<<(std::ostream& s, const IntPoint& p)

Callers

nothing calls this directly

Calls 4

TotalMethod · 0.45
ChildCountMethod · 0.45
IsOpenMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected