How to calculate stockpile volume?

Feel free to ask any question here
Post Reply
David_Nilsdotter
Posts: 1
Joined: Tue Oct 30, 2018 3:42 pm

How to calculate stockpile volume?

Post by David_Nilsdotter »

Hi.

I am new to CC, and I am in the process of calculating the volume between a point cloud and a mesh object. It appears to be very powerful, and I think I will have great use of it.

What I want to do is to calculate the stock volume between an area (mesh) and a point cloud. The volume is limited by the mesh area, and is based on the height difference between the point cloud and mesh. Please see https://support.pix4d.com/hc/en-us/arti ... #gsc.tab=0 for a visual representation of what I want to accomplish.

I want to do this through the command line. And I have observed the command:

Code: Select all

CloudCompare -o cloud1.bin -o mesh.obj -c2m_dist
and it generates a bin file that contains the distance between the mesh and point cloud that is represented as a height field.

So I am wondering the following things:
  • What is the format of the resulting bin file? (and can I get the resulting artifacts in ASCII format?)
  • Is this the correct way to go about finding the volume?
  • If not, how can CC help me do this?
Also, any references to the calculation (algorithm name, paper, pages) would be very helpful for me to get a better understanding of what is going on.

Thanks for a great work.
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: How to calculate stockpile volume?

Post by daniel »

To compute the volume, you'll have to use the... 2.5D Volume calculation tool ;). That's the only algorithm available for now.

This algorithm works between two clouds, so you'll have to convert your mesh to a cloud first (with -SAMPLE_MESH). Then use the -VOLUME option to compute the volume. See more info here:
- http://www.cloudcompare.org/doc/wiki/in ... _line_mode
- http://www.cloudcompare.org/doc/wiki/in ... .5D_Volume

There are otherwise several options to change the output file format, etc.
Daniel, CloudCompare admin
Post Reply