'How to open a 3D pointcloud in .obj format with python and treat it like an array?

So I've been dealing with 3D point clouds a lot in class but it was in the .ply format, and we have a nice script to load this kind of objects and convert them to np.ndarray.

Now, I have a .obj file that I have to load. I installed pywavefront and ran pywavefront.Wavefront(file_path), which returns a pywavefront.wavefront.Wavefront object, and now I don't know what to do with it. I can't find a complete documentation on the web.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source