MCPcopy Create free account
hub / github.com/AngusJohnson/Clipper2 / BuildPolyTreeDFromCPolyTree

Function BuildPolyTreeDFromCPolyTree

CPP/Tests/TestExportHeaders.cpp:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63static bool BuildPolyTreeDFromCPolyTree(CPolyTreeD tree, PolyTreeD& result)
64{
65 result.Clear();
66 double* v = tree;
67 int64_t array_len = static_cast<int64_t>(*v++);
68 int64_t child_count = static_cast<int64_t>(*v++);
69 for (size_t i = 0; i < child_count; ++i)
70 if (!CreatePolyPathDFromCPolyPath(v, result)) return false;
71 return true;
72}
73
74TEST(Clipper2Tests, ExportHeader64)
75{

Callers 1

TESTFunction · 0.85

Calls 2

ClearMethod · 0.45

Tested by

no test coverage detected