Page 1 of 1

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

Posted: Tue Nov 12, 2019 8:42 am
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!

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

Posted: Wed Nov 13, 2019 9:05 pm
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 ;).

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

Posted: Wed Nov 13, 2019 10:08 pm
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.

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

Posted: Wed Nov 13, 2019 10:38 pm
by daniel
Which coordinate system? The one from the cross section?

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

Posted: Thu Nov 14, 2019 9:39 am
by Jacky
object(ply) coordinate system

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

Posted: Thu Nov 14, 2019 12:58 pm
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!

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

Posted: Thu Nov 14, 2019 10:05 pm
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).