def view():
    from enthought.mayavi.sources.vtk_data_source import VTKDataSource
    from enthought.mayavi.modules.surface import Surface

    mayavi2.new_scene()
    src = VTKDataSource(data = mesh)
    mayavi2.add_source(src)
    s = Surface()
    mayavi2.add_module(s)
def view():
    from enthought.mayavi.sources.vtk_data_source import VTKDataSource
    from enthought.mayavi.modules.outline import Outline
    from enthought.mayavi.modules.image_plane_widget import ImagePlaneWidget

    mayavi2.new_scene()
    src = VTKDataSource(data=spoints)
    mayavi2.add_source(src)
    mayavi2.add_module(Outline())
    mayavi2.add_module(ImagePlaneWidget())
def view():
    from enthought.mayavi.sources.vtk_data_source import VTKDataSource
    from enthought.mayavi.modules.outline import Outline
    from enthought.mayavi.modules.image_plane_widget import ImagePlaneWidget

    mayavi2.new_scene()
    src = VTKDataSource(data = spoints)
    mayavi2.add_source(src)
    mayavi2.add_module(Outline())
    mayavi2.add_module(ImagePlaneWidget())
Exemple #4
0
def view3d(sgrid):
    from enthought.mayavi.sources.vtk_data_source import VTKDataSource
    from enthought.mayavi.modules.api import Outline, GridPlane

    mayavi2.new_scene()
    src = VTKDataSource(data=sgrid)
    mayavi2.add_source(src)
    mayavi2.add_module(Outline())
    g = GridPlane()
    g.grid_plane.axis = "x"
    mayavi2.add_module(g)