[英]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.