MCPcopy Create free account
hub / github.com/LibrePCB/LibrePCB / treeToPaths

Method treeToPaths

libs/librepcb/core/utils/clipperhelpers.cpp:281–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281ClipperLib::Paths ClipperHelpers::treeToPaths(
282 const ClipperLib::PolyTree& tree) {
283 try {
284 ClipperLib::Paths paths;
285 ClipperLib::PolyTreeToPaths(tree, paths);
286 return paths;
287 } catch (const std::exception& e) {
288 throw LogicError(
289 __FILE__, __LINE__,
290 QString("Failed to convert clipper tree to paths: %1").arg(e.what()));
291 }
292}
293
294ClipperLib::Paths ClipperHelpers::flattenTree(
295 const ClipperLib::PolyNode& node) {

Callers

nothing calls this directly

Calls 4

PolyTreeToPathsFunction · 0.85
LogicErrorClass · 0.85
QStringClass · 0.85
whatMethod · 0.45

Tested by

no test coverage detected