open3d.visualization.rendering.OffscreenRenderer

class open3d.visualization.rendering.OffscreenRenderer

Renderer instance that can be used for rendering to an image

__init__(self: open3d.cpu.pybind.visualization.rendering.OffscreenRenderer, width: int, height: int, resource_path: str = '') → None

Takes width, height and an optional resource_path. If unspecified, resource_path will use the resource path from the installed Open3D library.

render_to_image(self: open3d.cpu.pybind.visualization.rendering.OffscreenRenderer) → open3d.cpu.pybind.geometry.Image

Renders scene to an image, blocking until the image is returned

property scene

Returns the Open3DScene for this renderer. This scene is destroyed when the renderer is destroyed and should not be accessed after that point.