-
Notifications
You must be signed in to change notification settings - Fork 10
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
signed distances are not calculated if distance is >1e5 #10
Comments
Hi Jeff, |
Fixed in 63329d0: Set max dist to 1e12 and all beyond to NaN. |
Thanks a lot. I'll take a look later but based on the code change I think this will work for me. |
Thanks again! |
PS @zarquon42b do you have any plans for a CRAN release in the near future? |
If you need it, I will make one. No big deal. |
Thank you! Would be very handy as Rvcg is a dependency for my packages and most of my users are on mac and do not have a development environment set up but can use binary packages from CRAN. |
Hi Greg, |
I am working with some electron microscopy data calibrated in nm. I am using signed distance with
vcgClostKD
to determine if points are inside a mesh. Some of my distances from points outside the mesh are greater than 1E5.Unfortunately 1E5 is being used as a signalling value in some contexts to mean out of range. The lines below effectively assumes that all distances are <1E5.
Rvcg/src/RvcgKD.h
Lines 188 to 193 in d689603
would it perhaps be possible to use a NAN/Inf or other signalling procedure?
The text was updated successfully, but these errors were encountered: