Skip to main content
Solved

Merge 2 PointClouds of samew building but different coordinates and x, y, z together

  • May 15, 2023
  • 2 replies
  • 68 views

I have 2 PointClouds I want to merge their components using PointCloudMerger, however their x,y,z and coord values differ. They both represent scan of same building, but one has been set with global coordinates. I have applied Reprojector/CommonLocalReprojector but their location still differ. How do I change one of the PointCloud x y z values to be same other than forcefully changing it? And if I must change them by force what type are their in (Real64, Uint64, Int64, ...) ?

 

Alternatively, how can I pass the component value from each point to other point cloud through an index method as both Point Cloud have same number of points and should have same index.

 

image 

 

Best answer by kailinatsafe

Hello @khairilariffin​, thanks for posting! If both point clouds have the same number of points and index, I think we can add a new ID component (point_id) using the PointCloudExpressionEvaluator, and then merge the point clouds using this new ID:

 

imageIf you'd like both sets of coordinates on each point cloud, you might need to rename one set of components before merging (PointCloudComponentRenamer will do the trick). Otherwise, you can use the ConflictResolution parameter (featured in the bottom of the PointCloudMerger) to choose what point cloud component takes presedence on merge, either Requestor or Supplier. Please let me know if this produces desired results or not! If not, consider sharing the sample datasets. Happy to help, Kailin.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

kailinatsafe
Safer
Forum|alt.badge.img+23
  • Safer
  • 720 replies
  • Best Answer
  • May 23, 2023

Hello @khairilariffin​, thanks for posting! If both point clouds have the same number of points and index, I think we can add a new ID component (point_id) using the PointCloudExpressionEvaluator, and then merge the point clouds using this new ID:

 

imageIf you'd like both sets of coordinates on each point cloud, you might need to rename one set of components before merging (PointCloudComponentRenamer will do the trick). Otherwise, you can use the ConflictResolution parameter (featured in the bottom of the PointCloudMerger) to choose what point cloud component takes presedence on merge, either Requestor or Supplier. Please let me know if this produces desired results or not! If not, consider sharing the sample datasets. Happy to help, Kailin.


Thanks so much, this got it working.