Cropping a cloud with a mesh?

Feel free to ask any question here
Post Reply
pLow
Posts: 2
Joined: Wed Apr 05, 2017 5:57 pm

Cropping a cloud with a mesh?

Post by pLow »

Is there an existing way of using a mesh to crop a point cloud? Specifically, I have a point cloud and a mesh with identical X and Y extents and I would like to eliminate all of the points in the point cloud whose Z value is below (less than) the mesh. I know that the crop tool will let me crop with a cuboid and the segmentation tool will let me crop with projected line or polygon but I can't think of how to use either of these to accomplish my specific goal. Thanks.
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Cropping a cloud with a mesh?

Post by daniel »

Well, you could try with the 'cloud / mesh' distance tool? The distance will be signed and if you are lucky all distances will be negative below the mesh, and positive above it (but it depends a lot on the mesh).
Daniel, CloudCompare admin
pLow
Posts: 2
Joined: Wed Apr 05, 2017 5:57 pm

Re: Cropping a cloud with a mesh?

Post by pLow »

Thank you daniel, this works perfectly. For any future readers, the two-part workflow (v2.7.0) is below:

1. Select your mesh and your point cloud in the DB tree, click Compute cloud/mesh distance button on the top toolbar (make sure signed distances is checked)

2. Set C2M signed distances as your active scalar field, click the Filter point by value button on the top toolbar and filter by scalar value with min = 0
Post Reply