Page 1 of 1

SAMPLE_MESH with CLI

Posted: Tue Sep 09, 2025 2:22 pm
by omarladen
I am trying to read the documentation to implement the process that I am currently doing with the GUI, which is:
- Open an FBX model
- Select all elements
- Sample points on a mesh (Density = 10000, don't generate normals, get colors from material/texture)
- Select all clouds generated
- Merge
- Save as CSV (comma, columns title)


I got confused with the combination of commands, and also I kept getting an error "Cloud sampling failed!" after a small element could not generate a cloud: "[ccGenericMesh::samplePoints] No point was generated (sampling density is too low?)". When using the GUI, this doesn't stop the execution.

The commands I've tried were:
"C:\Program Files\CloudCompare\CloudCompare.exe" -O example.fbx -SAMPLE_MESH DENSITY 10000
"C:\Program Files\CloudCompare\CloudCompare.exe" -AUTO_SAVE OFF -O example.fbx -REMOVE_NORMALS -SAMPLE_MESH DENSITY 10000
"C:\Program Files\CloudCompare\CloudCompare.exe" -AUTO_SAVE OFF -O example.fbx -REMOVE_NORMALS -SAMPLE_MESH DENSITY 10000 -MERGE_CLOUDS -C_EXPORT_FMT ASC -SAVE_CLOUDS
"C:\Program Files\CloudCompare\CloudCompare.exe" -AUTO_SAVE OFF -O example.fbx -REMOVE_NORMALS -SAMPLE_MESH DENSITY 10000 -MERGE_CLOUDS -SAVE_CLOUDS

Re: SAMPLE_MESH with CLI

Posted: Thu Sep 11, 2025 6:38 am
by daniel
Can you maybe share the mesh file with me? (admin@cloudcompare.com)

Re: SAMPLE_MESH with CLI

Posted: Tue Sep 23, 2025 12:36 pm
by omarladen
Are the commands I sent correct? I will try to send an example later.

Re: SAMPLE_MESH with CLI

Posted: Wed Sep 24, 2025 7:23 pm
by daniel
They look correct to me!

Re: SAMPLE_MESH with CLI

Posted: Sat Dec 20, 2025 12:10 am
by omarladen
I have made a pull request to fix this issue:
https://github.com/CloudCompare/CloudCompare/pull/2265