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: 1>
HARD_SHADOWS = <LightingProfile.HARD_SHADOWS: 0>
MED_SHADOWS = <LightingProfile.MED_SHADOWS: 2>
NO_SHADOWS = <LightingProfile.NO_SHADOWS: 4>
SOFT_SHADOWS = <LightingProfile.SOFT_SHADOWS: 3>
property value
__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.MaterialRecord, 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.Geometry, material: open3d.cpu.pybind.visualization.rendering.MaterialRecord, 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
geometry_is_visible(self: open3d.cpu.pybind.visualization.rendering.Open3DScene, arg0: str) → bool

geometry_is_visible(name): returns True if the geometry name is visible

get_geometry_transform(self: open3d.cpu.pybind.visualization.rendering.Open3DScene, arg0: str) → numpy.ndarray[numpy.float64[4, 4]]

get_geometry_transform(name): returns the pose of the geometry name in the scene

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.MaterialRecord) → 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[numpy.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[numpy.float32[4, 1]]) → None

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

set_geometry_transform(self: open3d.cpu.pybind.visualization.rendering.Open3DScene, arg0: str, arg1: numpy.ndarray[numpy.float64[4, 4]]) → None

set_geometry_transform(name, transform): sets the pose of the geometry name to transform

set_lighting(self: open3d.cpu.pybind.visualization.rendering.Open3DScene, arg0: open3d.cpu.pybind.visualization.rendering.Open3DScene.LightingProfile, arg1: numpy.ndarray[numpy.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_ground_plane(self: open3d.cpu.pybind.visualization.rendering.Open3DScene, arg0: bool, arg1: open3d.cpu.pybind.visualization.rendering.Scene.GroundPlane) → None

Toggles display of ground plane

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.MaterialRecord) → None

Applies the passed material to all the geometries

DARK_SHADOWS = <LightingProfile.DARK_SHADOWS: 1>
HARD_SHADOWS = <LightingProfile.HARD_SHADOWS: 0>
MED_SHADOWS = <LightingProfile.MED_SHADOWS: 2>
NO_SHADOWS = <LightingProfile.NO_SHADOWS: 4>
SOFT_SHADOWS = <LightingProfile.SOFT_SHADOWS: 3>
property background_color

The background color (read-only)

property bounding_box

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

property camera

The camera object (read-only)

property downsample_threshold

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

property scene

The low-level rendering scene object (read-only)

property view

The low level view associated with the scene