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

Function PolytreeContainsPoint

CPP/Tests/TestPolytreeHoles.cpp:39–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39bool PolytreeContainsPoint(const PolyPath64& pp, const Point64 pt)
40{
41 int counter = 0;
42 for (const auto& child : pp)
43 PolyPathContainsPoint(*child, pt, counter);
44 EXPECT_GE(counter, 0); //ie 'pt' can't be inside more holes than outers
45 return counter != 0;
46}
47
48void GetPolyPathArea(const PolyPath64& pp, double& area)
49{

Callers 2

TestPolytree2Method · 0.85
TESTFunction · 0.85

Calls 1

PolyPathContainsPointFunction · 0.85

Tested by

no test coverage detected