Export multiple selections as PLYs

Feel free to ask any question here
Post Reply
Evan
Posts: 24
Joined: Wed Jul 08, 2020 12:54 am

Export multiple selections as PLYs

Post by Evan »

Hi Daniel,

I noticed that if I select multiple clouds and try to export, the option for PLY export vanishes. I can do bin, ASCII Cloud, e57, dxf, shp, and pov.

I see that there is very little difference between PLY and space separated ASCII. Really the only difference is in the header. I am using the PCV tool in Blender which requires PLY files if I want to load in a sequence of point clouds. Unfortunately it doesn't like the ASCII files, with and without headers, even if I save with the .ply extension. I think it may be looking for "ply" on the first line.

I have 75 point clouds from an Azure Kinect recording loaded into CloudCompare which I cleaned and clipped. I now need to re-export these as PLYs. Is there any functionality in the GUI to do this without exporting one by one? Maybe with the command line or with Python? I guess I can figure out how to add a fake header to the ASCII files to trick PCV in Blender, but I was hoping for something quicker.

Thanks.
JoeKan
Posts: 25
Joined: Fri Nov 29, 2019 11:58 pm

Re: Export multiple selections as PLYs

Post by JoeKan »

I think the EXPORT option works on only one cloud at a time (as I do not think there is a provision in the exporter to do multiple export instances). This had me stymied for a while as well.

The way I solved it is that I made copies of the clouds, and then joined all the copies into one overall cloud. I then exported that.
Use the "Edit"=>"Merge" commands to merge the clouds together.
Capture.JPG
Capture.JPG (53.36 KiB) Viewed 3649 times
Evan
Posts: 24
Joined: Wed Jul 08, 2020 12:54 am

Re: Export multiple selections as PLYs

Post by Evan »

Hi Joe,

Thanks for your reply! My issue is that I need the point clouds exported separately. They depict frames from a dynamic recording, i.e., it isn't capturing the same static scene. This was output from Microsoft's Azure Kinect, which provides such data. I have 75 frames (point clouds) that I'm trying to export.
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Export multiple selections as PLYs

Post by daniel »

The PLY format (as many other formats) doesn't allow to store multiple clouds in a single file.

That's why if you select multiple files, CC will only allow you to select the formats that can handle that. And mind that there's an exception for ASCII files. Even though they can't store multiple clouds at once, CC is simply able to generate one file per cloud automatically.
Daniel, CloudCompare admin
Post Reply