Page 1 of 1

sampling points from sub-meshes in command line mode

Posted: Sat Mar 06, 2021 1:09 pm
by mertana
Hello!

I am trying to sample points on a mesh using command line mode. I can achieve that by using:

Code: Select all

CloudCompare -O object.obj -SAMPLE_MESH POINTS 2048
However, object.obj consists of sub-meshes. The point cloud created by the command above does not contain the information of which points belong to which sub-mesh. If I were to use the GUI, I could choose each sub-mesh and sample from them, it would result in a separate point cloud for each sub-mesh (which is totally fine). I was wondering if it is possible to do something similar in command line mode.

Any help would be appreciated!

Re: sampling points from sub-meshes in command line mode

Posted: Sat Mar 06, 2021 3:09 pm
by daniel
No, right now the command line doesn't allow to process sub-meshes individually.

Re: sampling points from sub-meshes in command line mode

Posted: Sat Mar 06, 2021 5:20 pm
by mertana
Thank you for your answer daniel.

For future reference, here is the workaround I come up with. ".obj" files are in a human-readable format. I read the .obj with a python script, write each sub-mesh into their own .obj file, and use the command in the previous post to sample from them. Anyways, I would be happy to see simpler workarounds.

Re: sampling points from sub-meshes in command line mode

Posted: Wed Aug 28, 2024 1:10 pm
by slapdrone
Hey, just a +1 to say this would be a great feature, especially if it's easy to implement. Sampling points for a whole project together (binary cloudcompare format incl 10+ submeshes) devours all my RAM.