1. 首页
  2. 服务器应用
  3. FTP
  4. xyz ply.py

xyz ply.py

上传者: 2020-10-28 05:11:28上传 PY文件 1.38KB 热度 16次
import numpy as np # Function to create point cloud file def create_output(vertices, colors, filename): colors = colors.reshape(-1, 3) vertices = np.hstack([vertices.reshape(-1, 3), colors]) np.savetxt(filename, vertices, fmt='%f %f %f %d %d %d') # 必须先写入,然后利用write()在头部插入ply head
下载地址
用户评论