PLY export with the format x y z R G B nx ny nz

Feel free to ask any question here
Post Reply
Jacky
Posts: 8
Joined: Mon Oct 28, 2019 10:21 pm

PLY export with the format x y z R G B nx ny nz

Post by Jacky »

Hi,
I use the cross-section function to extract a subpoint cloud and save it as ply. But the format of the points is X Y Z R G B Nx Ny Nz. But I need the format like this: X Y Z Nx Ny Nz R G B, which means the sequence is Coordinate——Normal——Color. Any way to get it? Thanks a lot!
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: PLY export with the format x y z R G B nx ny nz

Post by daniel »

Apart from hacking the code, I don't see how you could achieve that.

(The PLY format relies on a non rigid structure so one shouldn't rely on the features order, but only on their name ;).
Daniel, CloudCompare admin
Jacky
Posts: 8
Joined: Mon Oct 28, 2019 10:21 pm

Re: PLY export with the format x y z R G B nx ny nz

Post by Jacky »

Thank you for your reply! By the way, how can I find the coordinate system and its origin of the object? So that I want to transfer the coordinate system to the robot coordinate system, in which case the robot can move along those points.
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: PLY export with the format x y z R G B nx ny nz

Post by daniel »

Which coordinate system? The one from the cross section?
Daniel, CloudCompare admin
Jacky
Posts: 8
Joined: Mon Oct 28, 2019 10:21 pm

Re: PLY export with the format x y z R G B nx ny nz

Post by Jacky »

object(ply) coordinate system
Jacky
Posts: 8
Joined: Mon Oct 28, 2019 10:21 pm

Re: PLY export with the format x y z R G B nx ny nz

Post by Jacky »

and can I transfer the object coordinate system to world coordinate system? In which case I can latter transfer the points coordinates to robot coordinate system. Thanks a lot!
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: PLY export with the format x y z R G B nx ny nz

Post by daniel »

You can do almost anything with the 'Edit > Apply transformation' tool (https://www.cloudcompare.org/doc/wiki/i ... sformation).

Otherwise the object coordinate system one displayed in CloudCompare is exactly the one as read from the PLY file (appart for the potential global shift that was applied at loading time if the coordinates are too large).
Daniel, CloudCompare admin
Post Reply