Page 1 of 1

Crash when a grain is only 2 points

Posted: Fri Mar 13, 2026 12:54 pm
by lguerit
I usually manually correct the automatic segmentation before to fit the grains by ellipsoid. Doing so, I created (by mistake) a grain with only 2 points. When I try to fit the grains, CloudCompare crashes without any warning. Could it be possible to stop the process before the crash or to ignore grains that are too small ?
I use Cloud Compare V2.14.Alpha (installed 04/25).
Thanks a lot !

Re: Crash when a grain is only 2 points

Posted: Thu Jun 11, 2026 9:43 am
by nicole225
Hello
My guess is that the fitting algorithm expects a minimum number of points and runs into trouble when it encounters a grain that small. A simple safeguard to ignore undersized grains would make sense. In the meantime, you might want to consider filtering out very small grains before running the fit.