Skip to main content
Question

Point Cloud Precision


mrclaudepicard

How can I set the precision for individual points in a point cloud?

After applying a 3D Rotation on my point cloud, I end up with x and y values with a precision of 13 and 14 digits, when my source has only 6 digits. I've used a PointCloudCoercer to get individual points that I can then pass through a CoordinateRounder before recombining them with a PointCloudCombiner.

It works, but the process is much longer than before.

2 replies

Forum|alt.badge.img+5

Hi @mrclaudepicard

Sadly the CoordinateRounder doesn't (yet) work on point clouds. However, you can use the PointCloudExpressionEvaluator as a workaround.

In that transformer's dialog set the component to X and Data Type to Preserve. The Expression to round to three decimal places will be:

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

For six places it would be:

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

Of course, you also add similar entries for the Y and Z coordinates.

Hope this helps.


Forum|alt.badge.img
  • April 11, 2018

hi

This workaround will only narrow down number of decimals but ending zeros will be lost.

 

 

If i need to keep/retain number of decimals in point cloud writer (445566.70), how can that be done?

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings