예제 #1
0
def test_read_stl_surface(input_datadir):
    reader = r.vmtkSurfaceReader()
    reader.InputFileName = os.path.join(input_datadir, 'fixture.stl')
    reader.Execute()

    conv = wrap.vmtkSurfaceToNumpy()
    conv.Surface = reader.Surface
    conv.Execute()

    assert sha1(conv.ArrayDict['Points']).hexdigest() == 'a3b3c7608de5a7a9fecf9f7280f9fc65565e7ded'
예제 #2
0
def test_read_vtp_surface(input_datadir):
    reader = r.vmtkSurfaceReader()
    reader.InputFileName = os.path.join(input_datadir, 'aorta-surface.vtp')
    reader.Execute()

    conv = wrap.vmtkSurfaceToNumpy()
    conv.Surface = reader.Surface
    conv.Execute()

    assert sha1(conv.ArrayDict['Points']).hexdigest() == '2d589cf877f713cf805d7be952fa5bdb2f2ef0ee'
예제 #3
0
def test_read_stl_surface(input_datadir):
    reader = r.vmtkSurfaceReader()
    reader.InputFileName = os.path.join(input_datadir, 'fixture.stl')
    reader.Execute()

    conv = wrap.vmtkSurfaceToNumpy()
    conv.Surface = reader.Surface
    conv.Execute()

    assert sha1(conv.ArrayDict['Points']).hexdigest() == 'a3b3c7608de5a7a9fecf9f7280f9fc65565e7ded'
예제 #4
0
def test_read_vtp_surface(input_datadir):
    reader = r.vmtkSurfaceReader()
    reader.InputFileName = os.path.join(input_datadir, 'aorta-surface.vtp')
    reader.Execute()

    conv = wrap.vmtkSurfaceToNumpy()
    conv.Surface = reader.Surface
    conv.Execute()

    assert sha1(conv.ArrayDict['Points']).hexdigest() == '2d589cf877f713cf805d7be952fa5bdb2f2ef0ee'
예제 #5
0
 def make_poly_to_np(surface):
     converter = surfacetonumpy.vmtkSurfaceToNumpy()
     converter.Surface = surface
     converter.Execute()
     return converter.ArrayDict
예제 #6
0
파일: conftest.py 프로젝트: vmtk/vmtk
 def make_poly_to_np(surface):
     converter = surfacetonumpy.vmtkSurfaceToNumpy()
     converter.Surface = surface
     converter.Execute()
     return converter.ArrayDict