Plugin RANSAC crash problem
Posted: Wed Jul 10, 2019 8:44 am
Hello,
I have a crash problem sometimes when I use RANSAC in sphere detection. It doesn't happen everytime, maybe because it is a random-based algorithm and depending on the point cloud data.
According the debug information, it concerns the method Optimize() of the file "LowStretchSphereParametrization.h".
It crashed on the line 137 in the file ( float maxGap = vangles.front() + 2 * float(M_PI) - vangles.back(); ), when "vangles" is empty.
I don't know if it's normal that "vangles" can happen to be empty, so I'd like to remark it here. Since my plugin uses RANSAC lib, it will be greatly appreciated that if it can be fixed.
Ps:
CC Version: 2.10.2 (Zephyrus).
For now, my solution is adding a line before that to verify"vangles" like:
if (vangles.size() < 2) return;
Thanks
I have a crash problem sometimes when I use RANSAC in sphere detection. It doesn't happen everytime, maybe because it is a random-based algorithm and depending on the point cloud data.
According the debug information, it concerns the method Optimize() of the file "LowStretchSphereParametrization.h".
It crashed on the line 137 in the file ( float maxGap = vangles.front() + 2 * float(M_PI) - vangles.back(); ), when "vangles" is empty.
I don't know if it's normal that "vangles" can happen to be empty, so I'd like to remark it here. Since my plugin uses RANSAC lib, it will be greatly appreciated that if it can be fixed.
Ps:
CC Version: 2.10.2 (Zephyrus).
For now, my solution is adding a line before that to verify"vangles" like:
if (vangles.size() < 2) return;
Thanks