Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is pcd fileformat supported with the PVGeo ? #105

Closed
ammaryasirnaich opened this issue Oct 28, 2021 · 5 comments
Closed

Is pcd fileformat supported with the PVGeo ? #105

ammaryasirnaich opened this issue Oct 28, 2021 · 5 comments

Comments

@ammaryasirnaich
Copy link

Does PVGeo support pcd file format to analyze point clouds from lidar datasets ? if so can you refer to any demo example.

Thanks

@banesullivan
Copy link
Member

banesullivan commented Oct 28, 2021

https://github.com/daavoo/pyntcloud supports PCD and can easily convert to a PyVista mesh (effectively achieving what PVGeo would provide if supporting PCD files).

See the example in their README, but it'd be something like:

from pyntcloud import PyntCloud
import pyvista as pv

cloud = PyntCloud.from_file("some_file.pcd")
mesh = cloud.to_instance("pyvista", mesh=False)

@ammaryasirnaich
Copy link
Author

Thanks @banesullivan for sharing the link and the snippet. Actually, I have tried the Pyntcloud library before and was having issues with the visualization part #310 that's why I wanted to try if PVGeo for it.

@banesullivan
Copy link
Member

At the end of the day, PVGeo just converts things to PyVista (which is what PyntCloud is doing here) - if having viz issues with PyVista, please head over to the discussion forms for help: https://github.com/pyvista/pyvista/discussions

@ammaryasirnaich
Copy link
Author

Many thanks, @banesullivan for the help. I will try the discussion forum on pyvista then

@ammaryasirnaich
Copy link
Author

I think I have found the workaround for this issue using, pyntcloud, as you said

from pyntcloud import PyntCloud
import pyvista as pv
import PVGeo
cloud = PyntCloud.from_file("file_name.pcd")
vtkpoints = PVGeo.points_to_poly_data(cloud.points)
vtkpoints.plot(clim=[0,1], point_size=1)

output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants