Keep point indices after segmenting and merging
Posted: Fri Apr 28, 2023 5:18 am
Hi,
I'm new to CloudCompare, I searched the forum but didn't find an exact answer. I'm trying to edit(rotate and translate) a part of a point cloud, and I want to keep the indices of the points after editing. What I'm doing right now is first segmenting the part I want to edit using 'Edit/Segment', this tool gives me a new point cloud with new indices, and after I edit this point cloud I want to merge ('Edit/Merge') it back and export as one point cloud, but I found some point indices changed after merging. So is there a way to keep the indices before and after segmenting and merging?
For example, I have a point cloud with 4 points indexed '0, 1, 2, 3, 4' that represents a stick man, where points 1, 2 represent the head that I want to edit, so after I segment points 1, 2 out I get two point clouds indexed '0, 1, 2' and '0, 1' where the latter one is the head. And when I merge the two point clouds is there a way to keep the indices in the original point cloud '0, 1, 2, 3, 4' rather than concatenate the two point clouds where the indices become '0, 3, 4, 1, 2' or '1, 2, 0, 3, 4'?
Thanks in advance!
I'm new to CloudCompare, I searched the forum but didn't find an exact answer. I'm trying to edit(rotate and translate) a part of a point cloud, and I want to keep the indices of the points after editing. What I'm doing right now is first segmenting the part I want to edit using 'Edit/Segment', this tool gives me a new point cloud with new indices, and after I edit this point cloud I want to merge ('Edit/Merge') it back and export as one point cloud, but I found some point indices changed after merging. So is there a way to keep the indices before and after segmenting and merging?
For example, I have a point cloud with 4 points indexed '0, 1, 2, 3, 4' that represents a stick man, where points 1, 2 represent the head that I want to edit, so after I segment points 1, 2 out I get two point clouds indexed '0, 1, 2' and '0, 1' where the latter one is the head. And when I merge the two point clouds is there a way to keep the indices in the original point cloud '0, 1, 2, 3, 4' rather than concatenate the two point clouds where the indices become '0, 3, 4, 1, 2' or '1, 2, 0, 3, 4'?
Thanks in advance!