Page 1 of 1

Trim a pointcloud with a mesh

Posted: Wed Dec 13, 2017 11:43 am
by westergu
Hi there,
Is there a way to trim/cut a pointcloud with a solid mesh so that I get two new clouds, one containing all the points that were inside the mesh and one with the points that were outside? I have a pointcloud terrain model and I want to cut a hole in it according to a 3D-excavation design. The design is rather complex and that is why I don't want to do it manually with the segmentation tool. I have made a watertight mesh model of the excavation design in CloudCompare. So can I use this as a trim tool somehow?

Best Regards,
Gustav

Re: Trim a pointcloud with a mesh

Posted: Wed Dec 13, 2017 8:01 pm
by daniel
Well, you should simply need to compute the 'cloud-to-mesh' distances with signed distances. This will (virtually) separate the points between the positive points (on one side of the mesh) and the negative ones (on the other side). Then use the 'Edit > SF > Filter by value' tool to split the cloud.

Re: Trim a pointcloud with a mesh

Posted: Thu Dec 14, 2017 5:05 am
by westergu
That is of course the way to do it! Silly me not thinking about it.
Thank you!

Regards,
Gustav