72ba10d896241ed3b7294747d1286e0b8d76283f,skimage/measure/tests/test_marching_cubes.py,,test_both_algs_same_result_ellipse,#,100

Before Change


    sphere_small = ellipsoid(1, 1, 1, levelset=True)
    
    vertices1, faces1, *_ = marching_cubes(sphere_small, 0)
    vertices2, faces2, *_ = marching_cubes_lewiner(sphere_small, 0, allow_degenerate=False)
    vertices3, faces3, *_ = marching_cubes_lewiner(sphere_small, 0, allow_degenerate=False, use_classic=True)
    
    // Order is different, best we can do is test equal shape and same vertices present
    assert _same_mesh(vertices1, faces1, vertices2, faces2)

After Change


    sphere_small = ellipsoid(1, 1, 1, levelset=True)
    
    vertices1, faces1 = marching_cubes(sphere_small, 0)[:2]
    vertices2, faces2 = marching_cubes_lewiner(sphere_small, 0, allow_degenerate=False)[:2]
    vertices3, faces3 = marching_cubes_lewiner(sphere_small, 0, allow_degenerate=False, use_classic=True)[:2]
    
    // Order is different, best we can do is test equal shape and same vertices present
    assert _same_mesh(vertices1, faces1, vertices2, faces2)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: scikit-image/scikit-image
Commit Name: 72ba10d896241ed3b7294747d1286e0b8d76283f
Time: 2016-07-25
Author: almar.klein@gmail.com
File Name: skimage/measure/tests/test_marching_cubes.py
Class Name:
Method Name: test_both_algs_same_result_ellipse


Project Name: scikit-image/scikit-image
Commit Name: 72ba10d896241ed3b7294747d1286e0b8d76283f
Time: 2016-07-25
Author: almar.klein@gmail.com
File Name: skimage/measure/tests/test_marching_cubes.py
Class Name:
Method Name: test_both_algs_same_result_donut


Project Name: scikit-image/scikit-image
Commit Name: 72ba10d896241ed3b7294747d1286e0b8d76283f
Time: 2016-07-25
Author: almar.klein@gmail.com
File Name: skimage/measure/tests/test_marching_cubes.py
Class Name:
Method Name: test_marching_cubes_anisotropic


Project Name: scikit-image/scikit-image
Commit Name: 72ba10d896241ed3b7294747d1286e0b8d76283f
Time: 2016-07-25
Author: almar.klein@gmail.com
File Name: skimage/measure/tests/test_marching_cubes.py
Class Name:
Method Name: test_marching_cubes_isotropic