sampling points from sub-meshes in command line mode

Feel free to ask any question here
Post Reply
mertana
Posts: 2
Joined: Sat Mar 06, 2021 12:41 pm

sampling points from sub-meshes in command line mode

Post 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!
daniel
Site Admin
Posts: 7607
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

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

Post by daniel »

No, right now the command line doesn't allow to process sub-meshes individually.
Daniel, CloudCompare admin
mertana
Posts: 2
Joined: Sat Mar 06, 2021 12:41 pm

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

Post 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.
slapdrone
Posts: 1
Joined: Wed Aug 28, 2024 1:05 pm

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

Post 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.
Post Reply