Page 1 of 1

Calculating volume loss between new and used 3d scans

Posted: Thu Jun 24, 2021 3:13 pm
by adrian_liberty
Good morning,

I've been trying to use CloudCompare to calculate the volume loss of a part before and after being used. To do this I've 3D scanned it before and after and imported both point clouds into the software, then I've used ICP to align them and it did a pretty good job, however since the used part is a bit lower than the new one, when it optimizes for RMS it shifts it up.

Is there a way that I can have the software only focus on the top part of the geometry, (the circle on top), since this part of the geometry doesn't wear.

I've attached a few images to make it easier to understand.

Thanks in advance for any help you can offer

Re: Calculating volume loss between new and used 3d scans

Posted: Thu Jun 24, 2021 6:06 pm
by WargodHernandez
So you will want to experiment with the research settings tab for ICP
ICPResearch.JPG
ICPResearch.JPG (36.61 KiB) Viewed 3896 times
If you already have the tops near aligned and know what axis they are on you can restrict translation along that axis, like if the circle you want lined up is in the XY plane you could turn of the Z translation.

Another option is add a scalar field for weights, and give a higher weight to the circle region, easiest way I can think to do this would be to add a SF to the entire cloud and set it to say 0.5, and then segment the cloud into different areas that you want to change weights for, then just set all SF values on points within the segmented clouds to the desired weight, then recombine the segmented clouds back into a single cloud to pass to ICP

Re: Calculating volume loss between new and used 3d scans

Posted: Sat Jun 26, 2021 2:22 pm
by adrian_liberty
Thanks for your help, aligning the top circles manually by restricting movement seems like a straightforward approach. Currently the "used" part rests slightly above the other one.

There's only one issue that maybe you can help me resolve too. After the point clouds came out of the scanner is the coordinate system is crooked, not sure if that's an issue with the scanner which I might have to resolve. But for the scans that I've already done, is there a way that I can have CC automatically detect this circle primitive for both scans, move the origin there and rotate the axis so that Z is perpendicular to the plane?

Thanks again!

Re: Calculating volume loss between new and used 3d scans

Posted: Sun Jun 27, 2021 9:38 am
by daniel
Sadly CC can't do that kind of things... You can only use the 'level' tool (https://www.cloudcompare.org/doc/wiki/i ... itle=Level) if you have a reference flat surface in both scans (you 'level' the 2 clouds, and then you can fine tune the rotation about the normal to that plane manually, or with ICP).

Just one point regarding your first question: normally to get a nice registration despite the fact that the 2 shapes are not exactly the same, you should reduce the main 'overlap' parameter (so that the non overlapping parts are ignored).

Re: Calculating volume loss between new and used 3d scans

Posted: Sun Jun 27, 2021 3:42 pm
by adrian_liberty
Reducing the "overlap" to 80% has actually helped quite a bit, what I'm thinking that might also help is if I delete the bottom part of the scan which is irrelevant to the process and then continue tweaking the overlap parameter.

I was able to, by selecting three points of the top surface, re align ('level') the coordinate system. Although this method isn't perfect I think it will be repeatable enough for what I'm trying to achieve.

Now that I have both scans on the same coordinate system, is there a way that I can delete the bottom part of both scans so that the algorithm only focuses on aligning the top part?

Thanks again for everyone's help.

Re: Calculating volume loss between new and used 3d scans

Posted: Mon Jun 28, 2021 4:10 pm
by WargodHernandez
Well if you know the coordinate system you could export the coordinate to SF
exportCoordToSF.JPG
exportCoordToSF.JPG (71.98 KiB) Viewed 3791 times
and then filter by SF value
FilterBySFVal.JPG
FilterBySFVal.JPG (36.07 KiB) Viewed 3791 times

Re: Calculating volume loss between new and used 3d scans

Posted: Wed Jun 30, 2021 7:45 pm
by daniel
Or if you mean 'manually', you can also use the 'Cross section' tool.