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

Method OffsetOpenJoined

CPP/Clipper2Lib/src/clipper.offset.cpp:380–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378}
379
380void ClipperOffset::OffsetOpenJoined(Group& group, const Path64& path)
381{
382 OffsetPolygon(group, path);
383 Path64 reverse_path(path);
384 std::reverse(reverse_path.begin(), reverse_path.end());
385
386 //rebuild normals
387 std::reverse(norms.begin(), norms.end());
388 norms.emplace_back(norms[0]);
389 norms.erase(norms.begin());
390 NegatePath(norms);
391
392 OffsetPolygon(group, reverse_path);
393}
394
395void ClipperOffset::OffsetOpenPath(Group& group, const Path64& path)
396{

Callers

nothing calls this directly

Calls 3

NegatePathFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected