settings

General settings.

# Axes title defaults
xtitle = 'x'
ytitle = 'y'
ztitle = 'z'

# Set a default for the font to be used for axes, comments etc.
defaultFont = 'Normografo' # check font options in shapes.Text

# Scale magnification of the screenshot (must be an integer)
screeshotScale = 1
screenshotTransparentBackground = False
screeshotLargeImage = False # Sometimes setting this to True gives better results

# Recompute vertex and cell normals
computeNormals = None

# Automatically reset the range of the active scalars
autoResetScalarRange = True

# Default style is TrackBallCamera
interactorStyle = None
# possible values are (see https://vtk.org/doc/nightly/html/classvtkInteractorStyle.html):
    - 0 = TrackballCamera [default]
    - 1 = TrackballActor
    - 2 = JoystickCamera
    - 3 = JoystickActor
    - 4 = Flight
    - 5 = RubberBand2D
    - 6 = RubberBand3D
    - 7 = RubberBandZoom
    - 8 = Context
    - 9 = 3D
    -10 = Terrain
    -11 = Unicam

# Allow to continously interact with scene during interactive() execution
allowInteraction = True

# Set up default mouse and keyboard functionalities
enableDefaultMouseCallbacks = True
enableDefaultKeyboardCallbacks = True

# If False, when multiple renderers are present do not render each one for separate
#  but do it just once at the end (when interactive() is called)
immediateRendering = True

# Show a gray frame margin in multirendering windows
rendererFrameColor = None
rendererFrameAlpha = 0.5
rendererFrameWidth = 0.5
rendererFramePadding = 0.0001

# In multirendering mode set the position of the horizontal of vertical splitting [0,1]
windowSplittingPosition = None

# Enable / disable color printing by printc()
enablePrintColor = True

# Qt embedding
usingQt = False

# Wrap lines in tubes
renderLinesAsTubes = False

# Smoothing options
pointSmoothing = False
lineSmoothing = False
polygonSmoothing = False

# Remove hidden lines when in wireframe mode
hiddenLineRemoval = False

# For Structured and RectilinearGrid: show internal edges not only outline
visibleGridEdges = False

# Turn on/off the automatic repositioning of lights as the camera moves.
lightFollowsCamera = False
twoSidedLighting = True

# Turn on/off rendering of translucent material with depth peeling technique.
useDepthPeeling = False
alphaBitPlanes  = True  # options only active if useDepthPeeling=True
multiSamples    = 0     # force to not pick a framebuffer with a multisample buffer
maxNumberOfPeels= 8     # maximum number of rendering passes
occlusionRatio  = 0.0   # occlusion ratio, 0 = exact image.

# Turn on/off nvidia FXAA post-process anti-aliasing, if supported.
useFXAA = False         # either True or False

# By default, the depth buffer is reset for each renderer. If True, use the existing depth buffer
preserveDepthBuffer = False

# Turn on/off Screen Space Ambient Occlusion (SSAO), darken some pixels to improve depth perception
useSSAO         = False
SSAORadius      = 0.5   # the SSAO hemisphere radius
SSAOBias        = 0.01  # the bias when comparing samples
SSAOKernelSize  = 32    # the number of samples
SSAOBlur        = False # blurring of the ambient occlusion (helps for low samples nr)

# Use a polygon/edges offset to possibly resolve conflicts in rendering
usePolygonOffset    = False
polygonOffsetFactor = 0.1
polygonOffsetUnits  = 0.1

# Interpolate scalars to render them smoothly
interpolateScalarsBeforeMapping = True

# Set parallel projection On or Off (place camera to infinity, no perspective effects)
useParallelProjection = False

# Set orientation type when reading TIFF files (volumes):
# TOPLEFT  1 (row 0 top, col 0 lhs)    TOPRIGHT 2 (row 0 top, col 0 rhs)
# BOTRIGHT 3 (row 0 bottom, col 0 rhs) BOTLEFT  4 (row 0 bottom, col 0 lhs)
# LEFTTOP  5 (row 0 lhs, col 0 top)    RIGHTTOP 6 (row 0 rhs, col 0 top)
# RIGHTBOT 7 (row 0 rhs, col 0 bottom) LEFTBOT  8 (row 0 lhs, col 0 bottom)
tiffOrientationType = 4

# AnnotatedCube axis type nr. 5 options:
annotatedCubeColor      = (0.75, 0.75, 0.75)
annotatedCubeTextColor  = None # use default, otherwise specify a single color
annotatedCubeTextScale  = 0.2
annotatedCubeTexts      = ["right","left ", "front","back ", " top ", "bttom"]

Usage example:

from vedo import *

settings.useParallelProjection = True

Cube().color('green').show()

embedWindow

vedo.settings.embedWindow(backend='ipyvtk', verbose=True)[source]

Use this function to control whether the rendering window is inside the jupyter notebook or as an independent external window