-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail case with some point clouds #3
Comments
In my case, that was because the code my points required a higher accuracy. The code was rounding them off, and thus many points now had the same coordinates. In this case, the bounding box becomes just one point. To solve this, you can increase the accuracy to long double for all involved variables. Or, depending on your application, you can have this fix:
} |
Thanks, I found this was exactly the reason for the error. I had rounding causing many points to have the same coordinates (origin) and the stack overflow was due to the ties. I didn't implement this fix, instead ensured that my data was not extremely flat (that was a fault on my end), but thanks for providing this, I'll give it a go. |
Hi, I'm attempting to use this library to align some point clouds. On some clouds, for reasons I've yet to identify, I'm getting crashes in the build_tree_for_Range function, particularly in
` int c = -1;
float maxspread = 0.0;
int m;
where spread>maxspread never hits, and the array tries to index c=-1, which crashes.
The text was updated successfully, but these errors were encountered: