daavoo / pyntcloud

pyntcloud is a Python library for working with 3D point clouds.
http://pyntcloud.readthedocs.io
MIT License
1.39k stars 221 forks source link

Loss of color when converting to open3D #350

Open alek5k opened 1 year ago

alek5k commented 1 year ago

Describe the bug When converting to an open3d instance, the color of the point cloud is lost

To Reproduce Steps to reproduce the behavior:

import open3d
from pyntcloud import PyntCloud

pointcloud = open3d.io.read_point_cloud("MyColorPointCloud.ply")
open3d.visualization.draw_geometries([pointcloud])
# See screenshot below

pyntcloud = PyntCloud.from_instance("open3d", pointcloud)
pointcloud_reconverted = pyntcloud.to_instance("open3d")
open3d.visualization.draw_geometries([pointcloud_reconverted])
# see screenshot below

Expected behavior The color should be preserved through to_instance call.

Screenshots First visualization: image

Second visualization: image

Desktop (please complete the following information):