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

Function MakeRandomPoly

CPP/Examples/MemLeakTest/MemLeakTest.cpp:31–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30
31inline Path64 MakeRandomPoly(int width, int height, unsigned vertCnt)
32{
33 Path64 result;
34 result.reserve(vertCnt);
35 for (unsigned i = 0; i < vertCnt; ++i)
36 result.push_back(Point64(rand() % width, rand() % height));
37 return result;
38}
39
40void DoMemoryLeakTest()
41{

Callers 1

DoMemoryLeakTestFunction · 0.70

Calls 1

Point64Class · 0.85

Tested by

no test coverage detected