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

Function getTestCont2

source/MRTest/MRDistanceMapTests.cpp:27–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 return c;
26}
27Contours2f getTestCont2()
28{
29 Contours2f c;
30 //simple case
31 c.push_back( { {1.f,2.f},{1.f,3.f} ,{4.f,3.f},{4.f,2.f},{1.f,2.f} } );
32
33 // a bit more complicated...
34 // should be clockwise
35 //c.push_back( { {0.f,5.f},{1.f,1.f},{5.f,0.f} } );
36 //c.push_back( { {4.f,0.f},{4.f,4.f},{0.f,5.f} } );
37 return c;
38}
39TEST( MRMesh, DistanceMapBoolean2D )
40{
41 auto c1 = getTestCont1();

Callers 1

TESTFunction · 0.85

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected