Convert .obj file format to .ply file format with vertex colors.
git clone https://github.com/nabeel3133/file-converter-.obj-to-.ply.git
cd file-converter-.obj-to-.ply
Run the following command
python convert.py --input [objfilename.obj] --output [plyfilename.ply]
python convert.py --input sample.obj --output sample.ply
The above code will take sample.obj
and convert it to ply format with the output files named:
sample.ply
without vertex colorssampleWithRGB.ply
with vertex colors
Note: Code cannot be used for obj files containing list of vertex normals and texture coordinates