open3d.visualization.rendering.Scene¶
-
class
open3d.visualization.rendering.
Scene
¶ Low-level rendering scene
-
class
GroundPlane
¶ Plane on which to show ground plane: XZ, XY, or YZ
Members:
XZ
XY
YZ
-
XY
= <GroundPlane.XY: 1>¶
-
XZ
= <GroundPlane.XZ: 0>¶
-
YZ
= <GroundPlane.YZ: 2>¶
-
property
value
¶
-
-
__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_directional_light
(self: open3d.cpu.pybind.visualization.rendering.Scene, arg0: str, arg1: numpy.ndarray[numpy.float32[3, 1]], arg2: numpy.ndarray[numpy.float32[3, 1]], arg3: float, arg4: bool) → bool¶ Adds a directional light to the scene: add_point_light(name, color, intensity, cast_shadows)
-
add_geometry
(*args, **kwargs)¶ Overloaded function.
add_geometry(self: open3d.cpu.pybind.visualization.rendering.Scene, name: str, geometry: open3d.cpu.pybind.geometry.Geometry3D, material: open3d.cpu.pybind.visualization.rendering.MaterialRecord, downsampled_name: str = ‘’, downsample_threshold: int = 18446744073709551615) -> bool
Adds a Geometry with a material to the scene
add_geometry(self: open3d.cpu.pybind.visualization.rendering.Scene, name: str, geometry: open3d.cpu.pybind.t.geometry.Geometry, material: open3d.cpu.pybind.visualization.rendering.MaterialRecord, downsampled_name: str = ‘’, downsample_threshold: int = 18446744073709551615) -> bool
Adds a Geometry with a material to the scene
-
add_point_light
(self: open3d.cpu.pybind.visualization.rendering.Scene, arg0: str, arg1: numpy.ndarray[numpy.float32[3, 1]], arg2: numpy.ndarray[numpy.float32[3, 1]], arg3: float, arg4: float, arg5: bool) → bool¶ Adds a point light to the scene: add_point_light(name, color, position, intensity, falloff, cast_shadows)
-
add_spot_light
(self: open3d.cpu.pybind.visualization.rendering.Scene, arg0: str, arg1: numpy.ndarray[numpy.float32[3, 1]], arg2: numpy.ndarray[numpy.float32[3, 1]], arg3: numpy.ndarray[numpy.float32[3, 1]], arg4: float, arg5: float, arg6: float, arg7: float, arg8: bool) → bool¶ Adds a spot light to the scene: add_point_light(name, color, position, direction, intensity, falloff, inner_cone_angle, outer_cone_angle, cast_shadows)
-
enable_indirect_light
(self: open3d.cpu.pybind.visualization.rendering.Scene, arg0: bool) → None¶ Enables or disables indirect lighting
-
enable_light_shadow
(self: open3d.cpu.pybind.visualization.rendering.Scene, arg0: str, arg1: bool) → None¶ Changes whether a point, spot, or directional light can cast shadows: enable_light_shadow(name, can_cast_shadows)
-
enable_sun_light
(self: open3d.cpu.pybind.visualization.rendering.Scene, arg0: bool) → None¶
-
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
-
remove_light
(self: open3d.cpu.pybind.visualization.rendering.Scene, arg0: str) → None¶ Removes the named light from the scene: remove_light(name)
-
render_to_depth_image
(self: open3d.cpu.pybind.visualization.rendering.Scene, arg0: Callable[[open3d.cpu.pybind.geometry.Image], None]) → None¶ Renders the scene to a depth image. This can only be used in GUI app. To render without a window, use Application.render_to_depth_image. Pixels range from 0.0 (near plane) to 1.0 (far plane)
-
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_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
-
set_sun_light
(self: open3d.cpu.pybind.visualization.rendering.Scene, arg0: numpy.ndarray[numpy.float32[3, 1]], arg1: numpy.ndarray[numpy.float32[3, 1]], arg2: float) → None¶ Sets the parameters of the sun light: direction, color, intensity
-
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_light_color
(self: open3d.cpu.pybind.visualization.rendering.Scene, arg0: str, arg1: numpy.ndarray[numpy.float32[3, 1]]) → None¶ Changes a point, spot, or directional light’s color
-
update_light_cone_angles
(self: open3d.cpu.pybind.visualization.rendering.Scene, arg0: str, arg1: float, arg2: float) → None¶ Changes a spot light’s inner and outer cone angles
-
update_light_direction
(self: open3d.cpu.pybind.visualization.rendering.Scene, arg0: str, arg1: numpy.ndarray[numpy.float32[3, 1]]) → None¶ Changes a spot or directional light’s direction
-
update_light_falloff
(self: open3d.cpu.pybind.visualization.rendering.Scene, arg0: str, arg1: float) → None¶ Changes a point or spot light’s falloff
-
update_light_intensity
(self: open3d.cpu.pybind.visualization.rendering.Scene, arg0: str, arg1: float) → None¶ Changes a point, spot or directional light’s intensity
-
update_light_position
(self: open3d.cpu.pybind.visualization.rendering.Scene, arg0: str, arg1: numpy.ndarray[numpy.float32[3, 1]]) → None¶ Changes a point or spot light’s position
-
UPDATE_COLORS_FLAG
= 4¶
-
UPDATE_NORMALS_FLAG
= 2¶
-
UPDATE_POINTS_FLAG
= 1¶
-
UPDATE_UV0_FLAG
= 8¶
-
XY
= <GroundPlane.XY: 1>¶
-
XZ
= <GroundPlane.XZ: 0>¶
-
YZ
= <GroundPlane.YZ: 2>¶
-
class