SAMPLE_MESH with CLI
Posted: Tue Sep 09, 2025 2:22 pm
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
- 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