PointCloud.disp#

PointCloud.disp(block: bool = False, file: str | None = None, title: str = 'Point Cloud', notebook: bool = False, **kwargs: Any) → None[source][source]#

Display point cloud using Open3D

Parameters:
  • block (bool, optional) – block until window dismissed, defaults to False

  • title (str, optional) – window title, defaults to “Point Cloud”

  • file (str, optional) – save display as an image, defaults to None

  • notebook (bool, optional) – draw in the output of the notebook cell, rather than in an Open3D window, defaults to False

  • front (array_like(3)) – set front vector

  • lookat (array_like(3)) – set lookat vector

  • up (array_like(3)) – set up vector

  • zoom (float) – set zoom value

Raises:
  • ValueError – file is given with notebook=True

  • ImportError – notebook=True and Plotly is not installed

  • TypeError – notebook=True and an option that Plotly cannot draw

Various viewing options are passed to the Open3D open3d.visualization.ViewControl.

Typing “h” in the display window will print help information to the console.

With notebook=True the point cloud is drawn in the output of the notebook cell, as a Plotly figure that can be rotated and zoomed. This needs Plotly, which is not installed with the Toolbox: pip install plotly. block and file do not apply. The view options above are passed on, along with any other option that open3d.visualization.draw_plotly accepts, such as width, height and point_sample_factor (the fraction of the points drawn, 0 to 1, which keeps a large cloud responsive). The three axes have the same scale, so shapes have their true proportions, as in the Open3D window. An option of the Open3D window that Plotly cannot draw raises TypeError, which names it and lists the options that are accepted.

Changed in version 2.5.0: Added the notebook option.