| 8 | { |
| 9 | |
| 10 | TEST(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 |
nothing calls this directly
no test coverage detected