vedo.applications.Browser(meshes, sliderpos=((0.55, 0.07), (0.96, 0.07)), c=None, prefix='')[source]

Generate a Plotter window to browse a list of objects using a slider. Returns the Plotter object.


class vedo.applications.FreeHandCutPlotter(mesh, splined=True, font='Bongas', alpha=0.9, lw=4, lc='red5', pc='red4', c='green3', tc='k9', tol=0.008)[source]

Bases: vedo.plotter.Plotter

A Plotter derived class which edits polygonal meshes interactively. Can also be invoked from command line. E.g. with

vedo --edit


  • Left-click and hold to rotate

  • Right-click and move to draw line

  • Second right-click to stop drawing

  • Press c to clear points

  • z/Z to cut mesh (Z inverts inside-out the selection area)

  • L to keep only the largest connected surface

  • s to save mesh to file (tag _edited is appended to filename)

  • u to undo last action

  • h for help, i for info

  • mesh (Mesh, Points) – The input Mesh or pointcloud.

  • splined (bool, optional) – join points with a spline or a simple line. The default is True.

  • font (str, optional) – Font name for the instructions. The default is “Bongas”.

  • alpha (float, optional) – transparency of the instruction message panel. The default is 0.9.

  • lw (str, optional) – selection line width. The default is 3.

  • lc (str, optional) – selection line color. The default is “red5”.

  • pc (str, optional) – selection points color. The default is “black”.

  • c (str, optional) – backgound color of instructions. The default is “green3”.

  • tc (str, optional) – text color of instructions. The default is “white”.

  • tol (int, optional) – tolerance of the point proximity. Default is 5.

start(*args, **kwargs)[source]


vedo.applications.IsosurfaceBrowser(volume, c=None, alpha=1, lego=False, cmap='hot', pos=None, delayed=False)[source]

Generate a Plotter window for Volume isosurfacing using a slider. Returns the Plotter object.

Set delayed=True to delay slider update on mouse release.

from vedo import dataurl, Volume
from vedo.applications import IsosurfaceBrowser
vol = Volume(dataurl+'head.vti')
plt = IsosurfaceBrowser(vol, c='gold'), bg2='lb')



Generate a Plotter window for Volume rendering using ray casting. Returns the Plotter object.


vedo.applications.Slicer2d(volume, levels=(None, None), size=(900, 900), bg='k9', zoom=1.2)[source]

Create a 2D window with a single slice of a Volume, wich can be oriented arbitrarily in space.


wl (list) – window and color levels


vedo.applications.SlicerPlotter(volume, alpha=1, cmaps=('gist_ncar_r', 'hot_r', 'bone_r', 'jet', 'Spectral_r'), map2cells=False, clamp=True, useSlider3D=False, size=(1200, 1000), screensize='auto', title='', bg='white', bg2='lightblue', axes=7, showHisto=True, showIcon=True, draggable=False, verbose=True)[source]

Generate a Plotter window with slicing planes for the input Volume. Returns the Plotter object.

  • alpha (float) – transparency of the slicing planes

  • cmaps (list) – list of color maps names to cycle when clicking button

  • map2cells (bool) – scalars are mapped to cells, not intepolated.

  • clamp (bool) – clamp scalar to reduce the effect of tails in color mapping

  • useSlider3D (bool) – show sliders attached along the axes

  • size (list) – rendering window size in pixels

  • screensize (list) – size of the screen can be specified

  • title (str) – window title

  • bg – background color

  • bg2 – background gradient color

  • axes (int) – axis type number

  • showHisto (bool) – show histogram on bottom left

  • showIcon (bool) – show a small 3D rendering icon of the volume

  • draggable (bool) – make the icon draggable