open3d.visualization.get_plotly_fig#

open3d.visualization.get_plotly_fig(geometry_list, width=600, height=400, mesh_show_wireframe=False, point_sample_factor=1, front=None, lookat=None, up=None, zoom=1.0)#

Generates a Plotly Figure object for a list of Open3D geometries.

Parameters:
  • geometry_list (List[open3d.geometry.Geometry]) – A list of Open3D geometry objects (e.g., PointCloud, TriangleMesh, LineSet) to be visualized.

  • width (int, optional) – The width of the Plotly figure in pixels. Defaults to 600.

  • height (int, optional) – The height of the Plotly figure in pixels. Defaults to 400.

  • mesh_show_wireframe (bool, optional) – If True, a wireframe will be rendered for TriangleMesh geometries in addition to the mesh itself. Defaults to False.

  • point_sample_factor (float, optional) – A factor between 0.0 and 1.0 that determines the fraction of points to sample from PointCloud geometries. A value of 1.0 means all points are used. Defaults to 1.0.

  • front (list of float, optional) – A list of 3 floats representing the camera’s front vector (e.g., [x, y, z]). If None, a default orientation is used. Defaults to None.

  • lookat (list of float, optional) – A list of 3 floats representing the point the camera is looking at (e.g., [x, y, z]). If None, the camera looks at the center of the combined geometries. Defaults to None.

  • up (list of float, optional) – A list of 3 floats representing the camera’s up vector (e.g., [x, y, z]). Defaults to Plotly’s default (0,0,1) if None.

  • zoom (float, optional) – The zoom level of the camera. Affects the distance of the eye position from the center. Defaults to 1.0.

Returns:

The generated Plotly figure object.

Return type:

plotly.graph_objects.Figure