Point segmentation based on primitives

Feel free to ask any question here
Post Reply
Ingsayyad
Posts: 97
Joined: Fri Oct 25, 2013 9:17 am

Point segmentation based on primitives

Post by Ingsayyad »

How can I segment my points based on geometric primitives.

1.All points lying above or below or on the plane
2: All points inside or outside or on the cylinder surface etc.

Any tip/trick.
daniel
Site Admin
Posts: 7479
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Point segmentation based on primitives

Post by daniel »

Well, if the primtive is already in place, you can simply compute the distances between the point cloud and the primitive (with Tools > Distances > Cloud/Mesh distances - as a primitive is a particular mesh in fact).

Then use the 'Edit > Scalar values > Filter by value' method to remove the points with distance below or above a certain threshold (depending on what you want). The convention is that a point 'inside' a mesh will have a negative distance.
Daniel, CloudCompare admin
Ingsayyad
Posts: 97
Joined: Fri Oct 25, 2013 9:17 am

Re: Point segmentation based on primitives

Post by Ingsayyad »

I do use this option but problem is that I lose color information of point cloud and end up only with scalar factor. I know I can do color interpolation fro original point cloud but It took so much time. Is there any way that I do not lose color info.
orinn
Posts: 31
Joined: Thu Sep 12, 2013 6:44 pm

Re: Point segmentation based on primitives

Post by orinn »

Cloud Compare retains the color information. Either it switching the display off of RGB and onto Scalar Fields or under scalar fields you can select your intensity values and choose the original values instead of the cloud to mesh computed results.
Post Reply