gpt4 book ai didi

Python plyfile 与 pymesh

转载 作者:太空狗 更新时间:2023-10-30 01:06:30 24 4
gpt4 key购买 nike

我需要用 Python 读取、操作和编写 PLY 文件。 PLY是一种用于存储 3D 对象的格式。通过简单的搜索,我找到了两个相关的库,PyMeshplyfile .有没有人对他们中的任何一个有任何经验,有没有人有任何建议? plyfile 似乎已经休眠了一年,从 Github 来看。

我知道这个问题会激发基于意见的答案,但我真的不知道还有什么地方可以问这个问题。

最佳答案

截至(2020 年 1 月)。

无,使用 open3d。这是最简单的,将 .ply 文件直接读入 numpy。

import numpy as np
import open3d as o3d

# Read .ply file
input_file = "input.ply"
pcd = o3d.io.read_point_cloud(input_file) # Read the point cloud

# Visualize the point cloud within open3d
o3d.visualization.draw_geometries([pcd])

# Convert open3d format to numpy array
# Here, you have the point cloud in numpy format.
point_cloud_in_numpy = np.asarray(pcd.points)

引用资料:

关于Python plyfile 与 pymesh,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36920562/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com