CloudComPy icon indicating copy to clipboard operation
CloudComPy copied to clipboard

Load Mesh files, Export histogram computation as .csv ad plot

Open sivaranjanija opened this issue 4 years ago • 7 comments

Hello! Thanks for developing this CloudComPy API for CloudCompare. I am using CloudComPy to try the following:

  • Open/load ".fbx" mesh filetype - I couldn't figure out the API to load a mesh (But, I see that the ccMesh class exists with many functionalities)
  • Export the results of distance computation (i.e, Histogram of the cloud to cloud distance computation and export these results as .csv file and .png fig image

It would be great if you could let me know whether these functionalities are there in CloudComPy, or, intended to be developed sooner. Thank you!

sivaranjanija avatar Jul 21 '21 15:07 sivaranjanija

So I'll let Paul or others comment on your questions, but I just have comment: the histogram that shows in your capture is not the result of the Disance computation tool ;). That's the approximate distances, before the real ones are computed. You have to hit the 'Compute button', then select the compared cloud and use the 'Edit > Scalar fields > Histogram' tool...

dgirardeau avatar Jul 22 '21 06:07 dgirardeau

Oops, thank you @dgirardeau for pointing that. So, let me correct my second point with the right image then,

  • Open/load ".fbx" mesh filetype - I couldn't figure out the API to load a mesh (But, I see that the ccMesh class exists with many functionalities)
  • Export the results of distance computation (i.e, Histogram of the cloud to cloud distance computation and export these results as .csv file and .png fig) - Does this functionality exist in CloudComPy image

Thank you!

sivaranjanija avatar Jul 22 '21 08:07 sivaranjanija

Hello,

  • I did not include the fbx driver in my build, I checked that it worked on Linux, I assume it will work without problems on Windows so I will include it in my next build.
  • There are indeed some functions missing to load the meshes, I will include those as well.
  • There is also no function to save csv and png, I will add that as well !

Three more points in my todo list :-)

Thanks for the screenshot, it's very clear like that!

prascle avatar Jul 23 '21 14:07 prascle

Thank you for the response, great that you are doing a good work! All the best and looking forward for the release :)

sivaranjanija avatar Jul 24 '21 09:07 sivaranjanija

The different points are covered in the latest version of CloudComPy (master of August 4). The Anaconda3 Windows10 binary can be found here: https://www.simulation.openfields.fr/binaries/ If there are still problems, don't hesitate to report them!

prascle avatar Aug 12 '21 08:08 prascle

Corresponding tests and examples are in test020.py and test022.py. The processing and export of calculation results in png or csv (e.g. histograms) are handled with the Python modules numpy, matplotlib and csv.

prascle avatar Aug 12 '21 10:08 prascle

Thank you for taking these points into account for the latest version! Sure, I shall check and report if there be any problems.

sivaranjanija avatar Aug 12 '21 12:08 sivaranjanija