openmc.lib.SolidRayTracePlot
- class openmc.lib.SolidRayTracePlot(uid=None, new=True, index=None)[source]
Solid ray-traced plot stored internally.
This class exposes a solid ray-traced plot that is stored internally in the OpenMC library. To obtain a view of an existing plot with a given ID, use the
openmc.lib.plotsmapping.- Parameters:
- Variables:
id (int) – Unique ID of the plot.
pixels (tuple of int) – Plot image dimensions as
(width, height).color_by (int) – Coloring mode. Use
COLOR_BY_MATERIALorCOLOR_BY_CELL.camera_position (tuple of float) – Camera position as
(x, y, z).look_at (tuple of float) – Point the camera is aimed at as
(x, y, z).light_position (tuple of float) – Position of the light source as
(x, y, z).fov (float) – Horizontal field-of-view angle in degrees.
diffuse_fraction (float) – Fraction of reflected light treated as diffuse (0 to 1).