Skip to content Skip to sidebar Skip to footer

Python Open3D No Attribute 'create_coordinate_frame'

I want to show the coordinates while visualizing a point cloud in open3D with Python. According to the documentation, I wrote the following code, in which the third line is suppose

Solution 1:

The attribute create_coordinate_frame does not exist; the one you mean is create_mesh_coordinate_frame. This will not work for you either, as it is intended for meshes and not point clouds.

To view a point cloud with axes, I suggest utilizing PyGEL 3D (pygel, gel3D, GEL - all the same). Try with this inside a Jupyter notebook:

from PyGEL3D import gel
from PyGEL3D import js

m = gel.ply_load('filename.ply') # Also try gel.wrl_load() for WRL files ;-)
m_points = m.positions() # Extract (n, 3) array (or list) of n points
js.display(m, smooth=False) # Note we do not need to extract points to view cloud

If you're not using Jupyter Notebook, remove the last line with js.display. Replace it with this:

viewer = gel.GLManifoldViewer()
viewer.display(m)

Post a Comment for "Python Open3D No Attribute 'create_coordinate_frame'"