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

# 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

# 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    = 8     # force to not pick a framebuffer with a multisample buffer
maxNumberOfPeels= 4     # 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 = 1

# 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"]

# k3d settings for jupyter notebooks
k3dMenuVisibility = True
k3dPlotHeight = 512
k3dAntialias  = True
k3dLighting   = 1.2
k3dCameraAutoFit = True
k3dGridAutoFit= True
k3dAxesHelper = True    # size of the small triad of axes on the bottom right
k3dPointShader= "mesh"  # others are '3d', '3dSpecular', 'dot', 'flat'
k3dLineShader = "thick" # others are 'flat', 'mesh'

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