neka-nat / cupoch

Robotics with GPU computing
MIT License
918 stars 107 forks source link

Unable to Read Binary PLY File #116

Open owen2t opened 1 year ago

owen2t commented 1 year ago

I am unable to open a binary ply file with cph, while it works for o3d. CPH doesn't throw an error, but says it contains zero vertices, while o3d reads all of the vertices. I don't know what the problem could be- I was looking at the source code for both and they look pretty identical.

Here is the code, and the file in question is attached. (It's in a zipped folder because github wouldn't let me attach a ply.)

import open3d as o3d
import cupoch as cph    

o3d.utility.set_verbosity_level(o3d.utility.VerbosityLevel.Debug)
cph.utility.set_verbosity_level(cph.utility.VerbosityLevel.Debug)

filepath = ""
pointcloud = cph.io.read_point_cloud(filename=filepath, remove_nan_points=False, remove_infinite_points=False)
print(pointcloud)
pointcloud = o3d.io.read_point_cloud(filepath)
print(pointcloud)

pointcloud.zip