Is there a way to load a .obj file into Pandas or Numpy?

Viewed 1861

I have a few .obj files that I want to bring into a dataframe.

I have seen PyMesh, but I can't seem to get it to work. It bombs in Anaconda at "load_mesh" not recognized.

Any ideas would be appreciated.

2 Answers

You can save the obj file as an stl file using pymesh OR assimp

Then you can load the stl file using numpy-stl

I use pd.read_csv to read .obj file into dataframe

obj_df = pd.read_csv("filename.obj", header=None, delimiter=' ')
Related