open3d.visualization.rendering.Open3DScene

class open3d.visualization.rendering.Open3DScene

High-level scene for rending

class LightingProfile

Enum for conveniently setting lighting

Members:

HARD_SHADOWS

DARK_SHADOWS

MED_SHADOWS

SOFT_SHADOWS

NO_SHADOWS

DARK_SHADOWS = LightingProfile.DARK_SHADOWS
HARD_SHADOWS = LightingProfile.HARD_SHADOWS
MED_SHADOWS = LightingProfile.MED_SHADOWS
NO_SHADOWS = LightingProfile.NO_SHADOWS
SOFT_SHADOWS = LightingProfile.SOFT_SHADOWS
__init__(self: open3d.cpu.pybind.visualization.rendering.Open3DScene, arg0: open3d.cpu.pybind.visualization.rendering.Renderer) → None
add_geometry(*args, **kwargs)

Overloaded function.

  1. add_geometry(self: open3d.cpu.pybind.visualization.rendering.Open3DScene, name: str, geometry: open3d.cpu.pybind.geometry.Geometry3D, material: open3d.cpu.pybind.visualization.rendering.Material, add_downsampled_copy_for_fast_rendering: bool = True) -> None

  2. add_geometry(self: open3d.cpu.pybind.visualization.rendering.Open3DScene, name: str, geometry: open3d.cpu.pybind.t.geometry.PointCloud, material: open3d.cpu.pybind.visualization.rendering.Material, add_downsampled_copy_for_fast_rendering: bool = True) -> None

add_model(self: open3d.cpu.pybind.visualization.rendering.Open3DScene, arg0: str, arg1: open3d.cpu.pybind.visualization.rendering.TriangleMeshModel) → None

Adds TriangleMeshModel to the scene.

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

has_geometry(name): returns True if the geometry has been added to the scene, False otherwise

modify_geometry_material(self: open3d.cpu.pybind.visualization.rendering.Open3DScene, arg0: str, arg1: open3d.cpu.pybind.visualization.rendering.Material) → None

modify_geometry_material(name, material). Modifies the material of the specified geometry

remove_geometry(self: open3d.cpu.pybind.visualization.rendering.Open3DScene, arg0: str) → None

Removes the geometry with the given name

set_background(self: open3d.cpu.pybind.visualization.rendering.Open3DScene, color: numpy.ndarray[float32[4, 1]], image: open3d.cpu.pybind.geometry.Image = None) → None

set_background([r, g, b, a], image=None). Sets the background color and (optionally) image of the scene.

set_background_color(self: open3d.cpu.pybind.visualization.rendering.Open3DScene, arg0: numpy.ndarray[float32[4, 1]]) → None

This function has been deprecated. Please use set_background() instead.

set_lighting(self: open3d.cpu.pybind.visualization.rendering.Open3DScene, arg0: open3d.cpu.pybind.visualization.rendering.Open3DScene.LightingProfile, arg1: numpy.ndarray[float32[3, 1]]) → None

Sets a simple lighting model. set_lighting(profile, sun_dir). The default value is set_lighting(Open3DScene.LightingProfile.MED_SHADOWS, (0.577, -0.577, -0.577))

set_view_size(self: open3d.cpu.pybind.visualization.rendering.Open3DScene, arg0: int, arg1: int) → None

Sets the view size. This should not be used except for rendering to an image

show_axes(self: open3d.cpu.pybind.visualization.rendering.Open3DScene, arg0: bool) → None

Toggles display of xyz axes

show_geometry(self: open3d.cpu.pybind.visualization.rendering.Open3DScene, arg0: str, arg1: bool) → None

Shows or hides the geometry with the given name

show_skybox(self: open3d.cpu.pybind.visualization.rendering.Open3DScene, arg0: bool) → None

Toggles display of the skybox

update_material(self: open3d.cpu.pybind.visualization.rendering.Open3DScene, arg0: open3d.cpu.pybind.visualization.rendering.Material) → None

Applies the passed material to all the geometries

DARK_SHADOWS = LightingProfile.DARK_SHADOWS
HARD_SHADOWS = LightingProfile.HARD_SHADOWS
MED_SHADOWS = LightingProfile.MED_SHADOWS
NO_SHADOWS = LightingProfile.NO_SHADOWS
SOFT_SHADOWS = LightingProfile.SOFT_SHADOWS
property bounding_box

The bounding box of all the items in the scene, visible and invisible

property camera

The camera object

property downsample_threshold

Minimum number of points before downsampled point clouds are created and used when rendering speed is important

property get_view

The low level view associated with the scene

property scene

The low-level rendering scene object