-
Notifications
You must be signed in to change notification settings - Fork 33
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
Support using float instead of double #11
Comments
I'm not sure I understand. Are you working on a system that only has single-precision floating-point? Or do you just want the input to be single-precision? Or do you want processing on the GPU itself? |
Yes, basically that's what I mean. But I'm not "working" on such a system - I develop an application which is intended to be portable. When compiling for a typical x86 platform, the application should use To be more clear, I develop an application using Qt. And Qt provides the typedef |
The issue is that getting decent (and correct) triangulation depends on an appropriate level of precision. I'm not sure that just replacing |
But if the input data also has reduced precision, do you think this is still an issue?
Yes of course, but the problem is that this could be very inefficient compared to using |
Absolutely |
OK so of course I leave it up to you to decide whether the library should also perform well on single-precision FPU or if that's out of scope. At least you now know that there are potential users which would be interested in that feature 🙂 I don't need the library immediately (currently I use another one), but I might reconsider using this library some day in future... Thanks! |
Have you tried: sed/double/float/g to see if you get results that are OK? |
Not yet - I might do that once I seriously start evaluating this library for my application 🙂 |
Hi,
It looks like the library currently only supports
double
. But for platforms with only a single-precision FPU it would be nice to allow usingfloat
for performance reasons. From usability point of view, it would be great to make the classes a template so we could pass eitherfloat
ordouble
as template argument. Alternatively it would also be OK to replace all occurrences ofdouble
with an own typedef and e.g. allow switching tofloat
with a define passed to the compiler, or something like that.Are there any plans in this direction, or would this be totally out of scope of this library?
The text was updated successfully, but these errors were encountered: