MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / getTestCont1

Function getTestCont1

source/MRTest/MRDistanceMapTests.cpp:15–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13{
14
15Contours2f getTestCont1()
16{
17 Contours2f c;
18 // simple case
19 c.push_back( { {2.f,1.f},{2.f,4.f},{3.f,4.f},{3.f,1.f},{2.f,1.f} } );
20
21 // a bit more complicated...
22 // should be clockwise
23 //c.push_back( { {0.f,0.f},{1.f,2.f},{2.5f,2.5f},{3.f,4.f},{5.f,5.f} } );
24 //c.push_back( { {5.f,5.f},{4.f,3.f},{2.5f,2.5f},{2.f,1.f},{0.f,0.f} } );
25 return c;
26}
27Contours2f getTestCont2()
28{
29 Contours2f c;

Callers 1

TESTFunction · 0.85

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected