Skip to content

Commit

Permalink
Merge pull request #128 from zivid/fix-normals-sample
Browse files Browse the repository at this point in the history
Fix display_pointcloud function
  • Loading branch information
SatjaSivcev authored Jan 4, 2022
2 parents cfecc94 + 90e1554 commit 2cdde1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/sample_utils/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ def display_pointcloud(xyz, rgb, normals=None):
"""
xyz = np.nan_to_num(xyz).reshape(-1, 3)
normals = np.nan_to_num(normals).reshape(-1, 3)
if normals is not None:
normals = np.nan_to_num(normals).reshape(-1, 3)
rgb = rgb.reshape(-1, 3)

point_cloud_open3d = o3d.geometry.PointCloud(o3d.utility.Vector3dVector(xyz))
Expand Down

0 comments on commit 2cdde1d

Please sign in to comment.