1

I have .off file (OFF structure) and I would like to construct a graph vertices and edges from this file.

I had found several libraries like networkX that may assist modeling 3d shapes to graph, but .off files are not supported. Each type of files have different format, like .obj differs in its format from .off.

And in all cases I prefer to do my own implementation.

I found the answer in this post (.OFF files), but I wasn't able to get more clarification from the answer, especially I'm not experienced with python.

1
  • It was much easier than I thought, through trimesh library I was able to load the file, and then I was able to get vertices and faces, then the coordinates.Done Commented Jul 3, 2019 at 11:36

1 Answer 1

1

Use a library like trimesh to load the file. The vertices, faces and coordinates will be available.

There are other libraries that do this too: vedo open3D py3dviewer

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.