Clarification on command line syntax for crop

Feel free to ask any question here
Post Reply
sscheidt77
Posts: 3
Joined: Fri Oct 09, 2015 5:28 pm

Clarification on command line syntax for crop

Post by sscheidt77 »

I think the documentation on command line control for CloudCompare could be improved. I've made several attempts to crop based on that documentation, and I keep failing. I have a point cloud with dimensions: xmin 1,000,400 ymin 1,005,500 xmax 1,000,850 ymax 1,005,900 zmin 1,000,000 zmax 1,001,200 and here is my last command line attempt.

cloudcompare -SILENT -o -GLOBAL_SHIFT 1000000 1000000 1000000 file.las -CROP 400:5500:0:850:5900:1200

I get this message after successfully loading the point cloud and global shift:

Found one cloud with 56265294 points
[CROP]
[Crop] No point of the cloud 'file' falls inside the input box!

I'm clearly getting the notation of the coordinates incorrect. I tried this as well:
cloudcompare -SILENT -o -GLOBAL_SHIFT 1000000 1000000 1000000 file.las -CROP 400 5500 0 850 5900 1200

and got this message:
[CROP]
Invalid parameter: box extents (expected format is 'Xmin:Ymin:Zmin:Xmax:Ymax:Zmax')

I think tried putting in the full coordinate (that included the global shift), and that didn't work for me either.

Please let me know what I'm missing?
Thanks.
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Clarification on command line syntax for crop

Post by daniel »

Hi,

Well, the first syntax should be the correct one... Can you send me the file maybe? (admin [at] cloudcompare.org)
Daniel, CloudCompare admin
Post Reply