Anyway to not save to original cloud in command line

Feel free to ask any question here
Post Reply
samrowell
Posts: 1
Joined: Fri Jul 26, 2019 1:32 pm

Anyway to not save to original cloud in command line

Post by samrowell »

Hi,

I have a script that extracts different sections of a point cloud based on height, ({cloudcompare path} -o -GLOBAL_SHIFT AUTO {point cloud path} -COORD_TO_SF Z -FILTER_SF 1.0628148720000001 3.388013302 ). A bin file is saved for each section (about 15 section), which is what I want, but it also re saves the original point cloud which is quite a big point cloud. Is there anyway to only save the updated point cloud?

Thanks a ton.
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Anyway to not save to original cloud in command line

Post by daniel »

I think it's because the first cloud is automatically saved when you call -COORD_TO_SF.

So you should disable auto save before calling this option, and then enable it again:

Code: Select all

({cloudcompare path} -o -GLOBAL_SHIFT AUTO {point cloud path} -AUTO_SAVE OFF -COORD_TO_SF Z -AUTO_SAVE ON -FILTER_SF X Y
By the way, there's another tool that can do that in one shot (if you want to extract multiple slices): -CROSS_SECTION (see https://www.cloudcompare.org/doc/wiki/i ... _line_mode)
Daniel, CloudCompare admin
Post Reply