settings

General settings.

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

# Set a default for the font to be used for axes, comments etc.
defaultFont = 'Normografo'
# Options are:
#    Biysk, Bongas, Calco, Comae, Kanopus, Glasgo, Inversionz, LionelOfParis,
#    LogoType, Normografo, Quikhand, SmartCouric, Theemim, VictorMono, VTK.
fontIsMono = True  # mono means that all letters occupy the same space slot horizontally
fontHSpacing = 1   # an horizontal stretching factor (affects both letters and words)
fontLSpacing = 0.1 # horizontal spacing inbetween letters (not words)

# Scale magnification of the screenshot (must be an integer)
screeshotScale = 1
screenshotTransparentBackground = False

# Sometimes setting this to True gives better results
screeshotLargeImage = False

# 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 interact with scene during interactor.Start() execution
allowInteraction = True

# Show a gray frame margin in multirendering windows
showRendererFrame = True
rendererFrameColor = None

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

# Use tex, matplotlib latex compiler
usetex = False

# Qt embedding
usingQt = False

# OpenVR rendering (untested)
useOpenVR = 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

# 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 anti-aliasing, if supported.
useFXAA = None          # either True or False. None sets the system default

# 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

# 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
annotatedCubeXPlusText  = "right"
annotatedCubeXMinusText = "left "
annotatedCubeYPlusText  = "front"
annotatedCubeYMinusText = "back "
annotatedCubeZPlusText  = " top "
annotatedCubeZMinusText = "bttom"

Usage example:

from vedo import *

settings.useParallelProjection = True

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

embedWindow

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

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