class open3d.visualization.O3DVisualizer

Visualization object used by draw()

class DrawObject

Information about an object that is drawn. Do not modify this, it can lead to unexpected results.

__init__(*args, **kwargs)

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

property geometry

The geometry. Modifying this will not result in any visible change. Use remove_geometry() and then add_geometry()to change the geometry

property group

The group that the object belongs to

property is_visible

True if the object is checked in the list. If the object’s group is unchecked or an animation is playing, the object’s visiblity may not correspond with this value

property name

The name of the object

property time

The object’s timestamp

class Shader

Scene-level rendering options


STANDARD : Pixel colors from standard lighting model

UNLIT : Normals will be ignored (useful for point clouds)

NORMALS : Pixel colors correspond to surface normal

DEPTH : Pixel colors correspond to depth buffer value

class TickResult

Return value from animation tick callback


NO_CHANGE : Signals that no change happened and no redraw is required

REDRAW : Signals that a redraw is required

__init__(self: open3d.cpu.pybind.visualization.O3DVisualizer, title: str = 'Open3D', width: int = 1024, height: int = 768) → None

Creates a O3DVisualizer object

add_action(self: open3d.cpu.pybind.visualization.O3DVisualizer, arg0: str, arg1: Callable[[open3d.cpu.pybind.visualization.O3DVisualizer], None]) → None

Adds a button to the custom actions section of the UI and a corresponding menu item in the “Actions” menu. add_action(name, callback). The callback will be given one parameter, the O3DVisualizer instance, and does not return any value.

add_geometry(*args, **kwargs)

Overloaded function.

  1. add_geometry(self: open3d.cpu.pybind.visualization.O3DVisualizer, name: str, geometry: open3d.cpu.pybind.geometry.Geometry3D, material: open3d.cpu.pybind.visualization.rendering.Material = None, group: str = ‘’, time: float = 0.0, is_visible: bool = True) -> None

Adds a geometry: geometry(name, geometry, material=None, group=’’, time=0.0, is_visible=True). ‘name’ must be unique.

  1. add_geometry(self: object, arg0: dict) -> None

Adds a geometry from a dictionary. The dictionary has the following elements: name: unique name of the object (required) geometry: the geometry or t.geometry object (required) material: a visualization.rendering.Material object (optional) group: a string declaring the group it is a member of (optional) time: a time value

export_current_image(self: open3d.cpu.pybind.visualization.O3DVisualizer, arg0: str) → None

export_image(path). Exports a PNG image of what is currently displayed to the given path.

get_geometry(self: open3d.cpu.pybind.visualization.O3DVisualizer, arg0: str) → open3d.cpu.pybind.visualization.O3DVisualizer.DrawObject

get_geometry(name): Returns the DrawObject corresponding to the name. This should be treated as read-only. Modify visibility with show_geometry(), and other values by removing the object and re-adding it with the new values

get_selection_sets(self: open3d.cpu.pybind.visualization.O3DVisualizer) → List[Dict[str, Set[open3d.cpu.pybind.visualization.SelectedIndex]]]

Returns the selection sets, as [{‘obj_name’, [SelectedIndex]}]

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

remove_geometry(name): removes the geometry with the name.

reset_camera_to_default(self: open3d.cpu.pybind.visualization.O3DVisualizer) → None

Sets camera to default position

set_background(self: open3d.cpu.pybind.visualization.O3DVisualizer, arg0: numpy.ndarray[float32[4, 1]], arg1: open3d.cpu.pybind.geometry.Image) → None

set_background(color, image=None): Sets the background color and, optionally, the background image. Passing None for the background image will clear any image already there.

set_on_animation_frame(self: open3d.cpu.pybind.visualization.O3DVisualizer, arg0: Callable[[open3d.cpu.pybind.visualization.O3DVisualizer, float], None]) → None

set_on_animation(callback): Sets a callback that will be called every frame of the animation. The callback will be called as callback(o3dvis, current_time).

set_on_animation_tick(self: open3d.cpu.pybind.visualization.O3DVisualizer, arg0: Callable[[open3d.cpu.pybind.visualization.O3DVisualizer, float, float], open3d.cpu.pybind.visualization.O3DVisualizer.TickResult]) → None

set_on_animation(callback): Sets a callback that will be called every frame of the animation. The callback will be called as callback(o3dvis, time_since_last_tick, total_elapsed_since_animation_started). Note that this is a low-level callback. If you need to change the current timestamp being shown you will need to update the o3dvis.current_time property in the callback. The callback must return either O3DVisualizer.TickResult.IGNORE if no redraw is required or O3DVisualizer.TickResult.REDRAW if a redraw is required.

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

Checks or unchecks the named geometry in the list. Note that even if show_geometry(name, True) is called, the object may not actually be visible if its group is unchecked, or if an animation is in progress.

start_rpc_interface(self: open3d.cpu.pybind.visualization.O3DVisualizer, address: str, timeout: int) → None

Starts the RPC interface. address: str with the address to listen on. timeout: int timeout in milliseconds for sending the reply.

stop_rpc_interface(self: open3d.cpu.pybind.visualization.O3DVisualizer) → None

Stops the RPC interface.

property animation_duration

Gets/sets the duration (in seconds) of the animation. This is automatically computed to be the difference between the minimum and maximum time values, but this is useful if no time values have been specified (that is, all objects are at the default t=0)

property animation_frame_delay

Gets/sets the length of time a frame is visible.

property animation_time_step

Gets/sets the time step for animations. Default is 1.0 sec

property current_time

Gets/sets the current time. If setting, only the objects belonging to the current time-step will be displayed

property is_animating

Gets/sets the status of the animation. Changing value will start or stop the animating.

property line_width

Gets/sets width of lines (in units of pixels)

property point_size

Gets/sets size of points (in units of pixels)

property scene

Returns the rendering.Open3DScene object for low-level manipulation

property scene_shader

Gets/sets the shading model for the scene

property show_axes

Gets/sets if axes are visible

property show_settings

Gets/sets if settings panel is visible