コード例 #1
0
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)
コード例 #2
0
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())
コード例 #3
0
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())
コード例 #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)