简体   繁体   中英

How to Construct Graph from .OFF python?

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM