python3dpoint-cloud-librarypoint-cloudsply

Python - Display 3D Point Cloud


I have a .PLY file that contains a 3D Point Cloud: I want to plot it and visualize it in Python. The .PLY file contains ONLY vertex and NOT faces.

Could you indicate me a simple Python library that will take care of plotting the 3D Point Cloud?

It is important to remark that I am not interested in plotting a Mesh, but just the Point Cloud.


Solution

  • For anybody wondering for an easy way to read and display PLY point clouds in Python I answer my own question reporting what I've found to be the best solution in my case.

    Open cmd and type:

    pip install open3d
    

    This will install Open3D on your machine and you will then be able to read and display your PLY point clouds just by executing the following sample script:

    from open3d import *    
    
    def main():
        cloud = io.read_point_cloud("output.ply") # Read point cloud
        visualization.draw_geometries([cloud])    # Visualize point cloud      
    
    if __name__ == "__main__":
        main()