but I get the error "No point cloud available. Be sure to open or generate one first".
Using the GUI, I import the 2 files, select their ASCII children in the tree and click "compute cloud/mesh distance": everything goes fine and I get the comparison without problems.
Yes because the GUI implicitly uses the compared mesh vertices as 'compared cloud'. While the command line doesn't (I guess this was not identified as something necessary at the time it has been developed ;).
You could sample points on the first mesh you load (with the -SAMPLE_MESH option), then remove the mesh from memory (the sampled points will remain) and then load the other (reference) mesh.
Is there a way to get the same behaviour in console? I mean, if I use the -SAMPLE_MESH option, is there a safe number of points / density to use?
I need to use the command in batch and the files will vary in number of points and dimensions.
No, it's not statistics.
I have to compare two CAD models to visually display the differences between the 3d model and its actual manufactured counterpart.
Right now I'm trying with -SAMPLE_MESH parameter using a fairly high amount of points and see if I can get a good result.