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

Method ZCB

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

Source from the content-addressed store, hash-verified

541
542#ifdef USINGZ
543void ClipperOffset::ZCB(const Point64& bot1, const Point64& top1,
544 const Point64& bot2, const Point64& top2, Point64& ip)
545{
546 if (bot1.z && ((bot1.z == bot2.z) || (bot1.z == top2.z))) ip.z = bot1.z;
547 else if (bot2.z && (bot2.z == top1.z)) ip.z = bot2.z;
548 else if (top1.z && (top1.z == top2.z)) ip.z = top1.z;
549 else if (zCallback64_) zCallback64_(bot1, top1, bot2, top2, ip);
550}
551#endif
552
553size_t ClipperOffset::CalcSolutionCapacity()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected