()
| 3 | |
| 4 | |
| 5 | def test_fix_tunnels(): |
| 6 | torus = mrmesh.makeTorus(2, 1, 10, 10, None) |
| 7 | |
| 8 | settings = mrmesh.DetectTunnelSettings() |
| 9 | settings.maxTunnelLength = 100500 |
| 10 | settings.filterEquivalentCoLoops = True |
| 11 | tunnelFaces = mrmesh.detectTunnelFaces(torus, settings) |
| 12 | |
| 13 | # one circle with 2-faces width |
| 14 | assert tunnelFaces.count() == 20 |