[英]How to Construct Graph from .OFF python?
我有 .off 文件( OFF 结构),我想从这个文件构建一个图形顶点和边。
我发现了几个像 networkX 这样的库可以帮助将 3d 形状建模为图形,但不支持 .off 文件。 每种类型的文件都有不同的格式,例如 .obj 与 .off 的格式不同。
在所有情况下,我更喜欢自己实现。
我在这篇文章中找到了答案( .OFF 文件),但我无法从答案中得到更多说明,尤其是我对 python 没有经验。
使用像trimesh这样的库来加载文件。 顶点、面和坐标将可用。
trimesh
还有其他库也这样做: vedo open3D py3dviewer
vedo
open3D
py3dviewer
[英]construct graph from python set type
[英]Construct bipartite graph from columns of python dataframe
[英]How to construct a graph (nodes and edges) in Python?
[英]Construct knn graph from image, using python and igraph
[英]Construct graph from data file
[英]how to construct graph from house price prediction dataset
[英]Construct flame graph from trie
[英]How to construct a puppet resource from Python
[英]how to create(construct) a json file from python
[英]How to construct a ndarray from a numpy array? python
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.