Export polyline data length

Feel free to ask any question here
Post Reply
galangfahmi
Posts: 3
Joined: Sun May 19, 2019 8:24 pm

Export polyline data length

Post by galangfahmi »

Hi,
I have searched the forum for some help on the subject, but maybe I missed it - in that case I'm sorry!
I have about 100 polylines per point cloud and I would like to extract the information generated in one go, especially the length of each polyline. I tried using point picking which provides coordinates of each point which than I could translate in length, but I was wondering if it is possible to skip this step.
Thank you for the help and thanks for making CC!
daniel
Site Admin
Posts: 7472
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Export polyline data length

Post by daniel »

Well, you can save all the polylines at once in a 'poly' file (in which case you'll get each vertex as X Y Z on each line in a file (and each polyline will be separated by a blank line).

Another option, if you have some C++ coding skills, is to duplicate the "Tools > Batch export > Export cloud info" method (or customize it) so that it can handle polylines and export the polylines length (see MainWindow::doActionExportCloudInfo() in mainwindow.cpp).
Daniel, CloudCompare admin
Post Reply