1. 계산
print("Recompute the normal of the downsampled point cloud")
estimate_normals(downpcd,
search_param = KDTreeSearchParamHybrid(radius = 0.1, max_nn = 30))
draw_geometries([downpcd])
2. 접근
print("Print a normal vector of the 0th point")
print(downpcd.normals[0])
print("Print the normal vectors of the first 10 points")
np.asarray(downpcd.normals)[:10,:]
import numpy as np
from open3d import *
pcd = read_point_cloud("/workspace/tmp/normal/fragment.pcd")
KD = KDTreeSearchParamHybrid(radius = 0.1, max_nn = 30)
estimate_normals(pcd, search_param = KD)
print(pcd.has_normals())
pcd.normals[0]
pcd.points[0]
normals = np.asarray(pcd.normals)
normals[0]