MCPcopy Create free account
hub / github.com/cinder/Cinder / OpenPathsFromPolyTree

Function OpenPathsFromPolyTree

blocks/Clipper/src/clipper.cpp:4591–4599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4589//------------------------------------------------------------------------------
4590
4591void 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
4602std::ostream& operator <<(std::ostream &s, const IntPoint &p)

Callers

nothing calls this directly

Calls 6

TotalMethod · 0.80
ChildCountMethod · 0.80
IsOpenMethod · 0.80
resizeMethod · 0.45
reserveMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected