How to export correct color after pointcloud sampling? #3038
-
Hi, I import a pointcloud and successfully store the MR::VertColors vc. Expected behavior: The VertColors should remain correct after the makeUniformSampledCloud operation. Please let me know if you need any further information or clarification on this issue. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello! Basically
What you need to do is to keep only sampled vertices enabled instead of creating new point cloud like this auto optVerts = pointUniformSampling( pointCloud, settings );
if ( !optVerts )
return;
pointCloud.validPoints &= *optVerts; then you can export it and colors should be saved fine |
Beta Was this translation helpful? Give feedback.
Hello!
Basically
makeUniformSampledCloud
is simpler version ofpointUniformSampling
that allows to support VertColors:pointUniformSampling
What you need to do is to keep only sampled vertices enabled instead of creating new point cloud like this
then you can export it and colors should be saved fine