open3d.visualization.rendering.Scene

class open3d.visualization.rendering.Scene

Low-level rendering scene

__init__(*args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

add_camera(self: open3d.cpu.pybind.visualization.rendering.Scene, arg0: str, arg1: open3d.cpu.pybind.visualization.rendering.Camera) → None

Adds a camera to the scene

add_geometry(*args, **kwargs)

Overloaded function.

  1. add_geometry(self: open3d.cpu.pybind.visualization.rendering.Scene, name: str, geometry: open3d.cpu.pybind.geometry.Geometry3D, material: open3d.cpu.pybind.visualization.rendering.Material, downsampled_name: str = ‘’, downsample_threshold: int = 18446744073709551615) -> bool

Adds a Geometry with a material to the scene

  1. add_geometry(self: open3d.cpu.pybind.visualization.rendering.Scene, name: str, geometry: open3d.cpu.pybind.t.geometry.PointCloud, material: open3d.cpu.pybind.visualization.rendering.Material, downsampled_name: str = ‘’, downsample_threshold: int = 18446744073709551615) -> bool

Adds a Geometry with a material to the scene

enable_directional_light(self: open3d.cpu.pybind.visualization.rendering.Scene, arg0: bool) → None
enable_indirect_light(self: open3d.cpu.pybind.visualization.rendering.Scene, arg0: bool) → None

Enables or disables indirect lighting

has_geometry(self: open3d.cpu.pybind.visualization.rendering.Scene, arg0: str) → bool

Returns True if a geometry with the provided name exists in the scene.

remove_camera(self: open3d.cpu.pybind.visualization.rendering.Scene, arg0: str) → None

Removes the camera with the given name

render_to_image(self: open3d.cpu.pybind.visualization.rendering.Scene, arg0: Callable[[open3d.cpu.pybind.geometry.Image], None]) → None

Renders the scene to an image. This can only be used in a GUI app. To render without a window, use Application.render_to_image

set_active_camera(self: open3d.cpu.pybind.visualization.rendering.Scene, arg0: str) → None

Sets the camera with the given name as the active camera for the scene

set_directional_light(self: open3d.cpu.pybind.visualization.rendering.Scene, arg0: numpy.ndarray[float32[3, 1]], arg1: numpy.ndarray[float32[3, 1]], arg2: float) → None

Sets the parameters of the directional light: direction, color, intensity

set_indirect_light(self: open3d.cpu.pybind.visualization.rendering.Scene, arg0: str) → bool

Loads the indirect light. The name parameter is the name of the file to load

set_indirect_light_intensity(self: open3d.cpu.pybind.visualization.rendering.Scene, arg0: float) → None

Sets the brightness of the indirect light

update_geometry(self: open3d.cpu.pybind.visualization.rendering.Scene, arg0: str, arg1: open3d.cpu.pybind.t.geometry.PointCloud, arg2: int) → None

Updates the flagged arrays from the tgeometry.PointCloud. The flags should be ORed from Scene.UPDATE_POINTS_FLAG, Scene.UPDATE_NORMALS_FLAG, Scene.UPDATE_COLORS_FLAG, and Scene.UPDATE_UV0_FLAG

UPDATE_COLORS_FLAG = 4
UPDATE_NORMALS_FLAG = 2
UPDATE_POINTS_FLAG = 1
UPDATE_UV0_FLAG = 8