Skip to main content
Question

Mathing X, Y, Z in PointCloudMerger

  • April 18, 2023
  • 2 replies
  • 4 views

Hello everyone!

I'm trying to combine the components of two point clouds from their x,y,z coordinates but they never match 100% of the points... The help of the tool says that it may be necessary to round the coordinates but the transformer "pointcloudexpressionevaluator" does not have the "round" function... How could I round the coordinates of the x, y, z components to match and match? I would really appreciate any kind of help.

 

image.pngimage

2 replies

nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • April 18, 2023

You can use  the PointCloudExpressionEvaluator to do the rounding, using

( floor( @Component(x) * 1000.0 ) / 1000.0 )

for 3 decimals, or

( floor( @Component(x) * 1000000.0 ) / 1000000.0 )

for 6 decimals.

 

Also see this topic.


  • Author
  • 1 reply
  • April 19, 2023

Thank you very much!

This solution worked for me