Use cloud compare to finish format conversion

Feel free to ask any question here
Post Reply
Kyle.huo
Posts: 1
Joined: Thu Oct 10, 2019 2:44 am

Use cloud compare to finish format conversion

Post by Kyle.huo »

Hello,everyone! All I want to do is change the format between .stl and .pcd. In the GUI of Cloud Compare, I have finished this task by "edit-mesh-sample points". And then I can save the file as .pcd format. Because I have so many files, so I want to finish it in c++ code. I have noticed that Cloud Compare has a function called "MeshSample.samplePointsOnMesh:. However, I didn't find how to open file and save file. What's more, how to write CMakelist is also a challenge problem for me. Can you help me? Thank you so much.
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Use cloud compare to finish format conversion

Post by daniel »

Otherwise you could use the command line mode of CloudCompare: https://www.cloudcompare.org/doc/wiki/i ... _line_mode

If you are really motivated by developing C++ code, then you'll have to use both the qCC_db and the qCore_IO_plugin (where the STL filter now lies)
Daniel, CloudCompare admin
Post Reply