Batch export of cloud point volumes calculated by 2.5D calculation?

Feel free to ask any question here
Post Reply
sfzopf
Posts: 3
Joined: Mon Mar 14, 2022 1:32 pm

Batch export of cloud point volumes calculated by 2.5D calculation?

Post by sfzopf »

Hi,

First - super great software! Thanks for making it :)

I wanted to know if there is a way to export the volumes calculated via 2.5D volume on multiple segmented cross sections of a point cloud into some kind of list (csv, txt, etc)?
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Batch export of cloud point volumes calculated by 2.5D calculation?

Post by daniel »

Not sure to understand, but you can export the 'difference' grid/raster as a point cloud, that you can then export as an ASCII file.
Daniel, CloudCompare admin
sfzopf
Posts: 3
Joined: Mon Mar 14, 2022 1:32 pm

Re: Batch export of cloud point volumes calculated by 2.5D calculation?

Post by sfzopf »

Hmm.. I don't think that's what I want, unless I'm not understanding.

I am attaching screenshots to hopefully better demonstrate what I'm trying to do.

(1) I generate multiple cross sections of a point cloud I've already cleaned up.

(2 and 3) Through the 2.5D volume calculation, I can get a volume of a specific cross section

I manually did this for 5 cross section, but i need to do this for more than 1000 cross sections. I was hoping to code this somehow if it wasn't available, but not sure if there is a functionality I'm overlooking.

Basically, i need to calculate the cross sectional area of each slice of a semi-amorphous geometry (it has a rectangular footprint in the XY plane, with Y being the longer and in the direction I'm slicing), but the height in the Z direction varies.

I was hoping to do that by slicing it in multiple cross section parallel to the XZ plane, and estimating it from there.
Is there a plug in available, or would I need to code this in Python and/or MATLAB?
Attachments
Screen Shot 2022-03-22 at 8.42.29 AM.png
Screen Shot 2022-03-22 at 8.42.29 AM.png (293.24 KiB) Viewed 2618 times
DA523
Posts: 166
Joined: Mon May 25, 2020 4:02 pm

Re: Batch export of cloud point volumes calculated by 2.5D calculation?

Post by DA523 »

As a workaround, I use AutoHotkey to automate the calculation of many sections of one shape.
Have a look at
https://www.cloudcompare.org/forum/view ... 692#p24692
However, you need time to write an AutoHotkey script to find the volumes and paste each one into an opened Excel window
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Batch export of cloud point volumes calculated by 2.5D calculation?

Post by daniel »

DA523 made a good suggestions.

Otherwise I guess you could try with CloudCompy, but I don't know if the 2.5D Volume calculation tool is already accessible via this interface (Paul, the maintainer, is super reactive though ;).
Daniel, CloudCompare admin
sfzopf
Posts: 3
Joined: Mon Mar 14, 2022 1:32 pm

Re: Batch export of cloud point volumes calculated by 2.5D calculation?

Post by sfzopf »

Thanks for the replies, all! I will check out DA523's suggestion, and if not, will try to code something in python.
Post Reply