-
Notifications
You must be signed in to change notification settings - Fork 16
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
Vector data structure #3
Comments
First of all thanks for the interest in the lib :-) Regarding your points
Best, |
Thank you for the library, it works quite good so far. I am using it for distance fields here. Hmm, i guess it's hard to generalize on the vector library, while it still worked quite good with libeigen. I will send you PRs when I change major things. |
Are you working on develop or master? |
I am currently using a checkout from master. |
Is develop working as well as master? I think I will need it anyway for the ray-triangle test. Then i could merge this with develop and cherry pick the index-range patch from master. |
Yes develop is quite a little in front of master, it's just that I wasn't sure if I want to change the interface... |
While you're using a template argument for the vector format, you have quite concrete requirements on the vector (i.e. it needs to implement dot and cross product), without having an example implementation in the repository.
This makes it hard to actually use it in such a generic way (you would for example expect to be able to use std::vector, std::valarray, double[3] for a real generic structure).
But your expected structure works quite fine with libeigen Eigen::Vector3f, if you change a few things:
squared_norm
tosquaredNorm
Vec3fType(inf)
toVec3fType(inf, inf, inf)
everywhere.Another thing is, that you might consider to make
float
a template, so data structures using doubles can be used as well (i.e.Eigen::Vector3d
).The text was updated successfully, but these errors were encountered: