.ply to .obj [ realsense outputs conversion] on Xavier or Host PC

we are looking for a converter to get realsense .ply into .obj format
has anyone got a solution ?

python3 ply2obj.py cloud.ply cloud.obj
Traceback (most recent call last):
  File "ply2obj.py", line 52, in <module>
    main()
  File "ply2obj.py", line 16, in main
    convert(PlyData.read(args.ply_filename), args.obj_filename)
  File "ply2obj.py", line 35, in convert
    n = [ v['nx'], v['ny'], v['nz'] ]
ValueError: no field of name nx

used https://gist.githubusercontent.com/randomize/a95e2db97b1277bbb49d4f2f59c08f3d/raw/c52a9e52d9385cb81dd657ad4ffdb390360df19f/ply2obj.py

Hi,
There is probably no existing solution for this. Is it to convert python script to executable binary?

@DaneLLL
Hi,
Thank you for your response.
We got somewhat two solutions that seems workable, but might require further testing.

  1. meshlab seem to export ply as obj in a way it could open resulting obj.
    What is unknown is if other programs will also be able to visualize the resulting obj.
  2. https://github.com/daavoo/pyntcloud/issues/293#issuecomment-729879610
    I have not had a chance to test it yet though

Ref https://stackoverflow.com/questions/44997054/point-cloud-to-volume