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