Page 1 of 1

Splitting a Cloud Only using XY Values

Posted: Wed Jul 06, 2022 4:52 pm
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!

Re: Splitting a Cloud Only using XY Values

Posted: Thu Jul 07, 2022 5:51 pm
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)').

Re: Splitting a Cloud Only using XY Values

Posted: Wed Jul 13, 2022 5:38 am
by roboT
Thanks Daniel! I just got back to the project today and it was a great experience to just have it work!