Crash when a grain is only 2 points

For any question related to the G3Point plugin
Post Reply
lguerit
Posts: 4
Joined: Wed Jun 09, 2021 11:44 am

Crash when a grain is only 2 points

Post 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 !
nicole225
Posts: 3
Joined: Mon Mar 09, 2026 11:48 am

Re: Crash when a grain is only 2 points

Post 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.
Post Reply