Splitting a Cloud Only using XY Values

Feel free to ask any question here
Post Reply
roboT
Posts: 2
Joined: Wed Jul 06, 2022 4:40 pm

Splitting a Cloud Only using XY Values

Post by roboT »

Hi All,
First, thanks to the developers for such an amazing piece of software.
I was wondering if it was possible to split a cloud based on XY values. I have a large cloud composed of buildings. I am looking to separate the buildings in plan - I want to ignore the Z values during a split. For this reason, connected components isn't really returning a good result for me as increasing the cotree level leads to splits in the z axis.

The cloud in perspective:
Image

The required split (in top view):
Image

Thanks in advance!
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Splitting a Cloud Only using XY Values

Post by daniel »

One option would be to save the Z coordinate to a scalar field (Edit > Scalar field > Export coordinate(s) as SF). Then flatten the cloud by multiplying the Z coordinate by 0 (Edit > Multiply). Apply the 'Label connected components' to the 2D flatten cloud. And eventually, you'll have to restore the Z coordinate of all the subclouds (with 'Edit > Scalar fields > Set SF as coordinate(s)').
Daniel, CloudCompare admin
roboT
Posts: 2
Joined: Wed Jul 06, 2022 4:40 pm

Re: Splitting a Cloud Only using XY Values

Post by roboT »

Thanks Daniel! I just got back to the project today and it was a great experience to just have it work!
Post Reply