PyVista3DViewerTheme¶
Aliases:
petres.viewers.Viewer3DTheme
- class petres.viewers.PyVista3DViewerTheme[source]¶
Bases:
Base3DViewerThemeConfigure visual theme and camera settings for a 3D scene.
- Parameters:
background (str | tuple[float, float, float], default="white") – Scene background color.
show_orientation_widget (bool, default=True) – Display the orientation widget in the viewer.
show_coordinate_axes (bool, default=True) – Display coordinate axes in the scene.
lighting (bool, default=True) – Enable lighting when adding shaded meshes to the scene.
scale (tuple[float, float, float], default=(1.0, 1.0, 1.0)) – Per-axis scale multipliers for rendering.
title_fontsize (int, default=12) – Font size for the scene title.
title_color (str | tuple[float, float, float], default="black") – Title text color.
title_position (str, default="upper_edge") – Viewer-specific anchor position for title placement.
camera (Camera3D, default=Camera3D()) – Camera configuration applied to the scene.
allow_empty_mesh (bool, default=True) – Allow rendering of meshes with no faces.
- __init__(background='white', show_orientation_widget=True, show_coordinate_axes=True, lighting=True, scale=(1.0, 1.0, 1.0), direction=(1, 1, -1), title_fontsize=12, title_color='black', title_position='upper_edge', allow_empty_mesh=True)¶