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

Function TEST

source/MRTest/MRContoursStitchTests.cpp:10–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8{
9
10TEST(MRMesh, cutAlongEdgeLoop)
11{
12 Mesh mesh = makeCube();
13 auto & topology = mesh.topology;
14 const auto ueCntA = topology.computeNotLoneUndirectedEdges();
15
16 EdgeLoop c0;
17 for ( auto e : leftRing( mesh.topology, 0_f ) )
18 c0.push_back( e );
19 auto c1 = cutAlongEdgeLoop( mesh.topology, c0 );
20 const auto ueCntB = topology.computeNotLoneUndirectedEdges();
21 ASSERT_EQ( ueCntB, ueCntA + 3 );
22
23 stitchContours( mesh.topology, c0, c1 );
24 const auto ueCntC = topology.computeNotLoneUndirectedEdges();
25 ASSERT_EQ( ueCntC, ueCntA );
26}
27
28} //namespace MR

Callers

nothing calls this directly

Calls 6

makeCubeFunction · 0.85
leftRingFunction · 0.85
cutAlongEdgeLoopFunction · 0.85
stitchContoursFunction · 0.85
push_backMethod · 0.80

Tested by

no test coverage detected