-
Notifications
You must be signed in to change notification settings - Fork 9
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
pasture_algorithms require POSITION_3D attribute to be f64. #23
Comments
Here is an example of what I did to get the behavior I wanted for
It would obviously be nice if we could check whether or not the attribute has the right format at compile time, but I don't think that is possible with the current layout structure. |
I agree that the algorithms are not particularly generic at the moment. What you describe is a general theme in pasture due to the fact that That being said, would the converting attribute views be an option for you? I.e. If this works for you, I'd be happy to take a PR for this :) |
I appreciate the quick response :) For context: my company, Fizyr, is in the process of porting our codebase to Rust. If possible, we want to replace our PCL ffi wrappers with Pasture. We are more than happy to contribute if you are open to the features that we would need: For functions that are going to iterate over every point in the pointcloud, we need the option to run them with f32 rather than converting everything using the We would also need a fallible If you have another communication channel where you want to discuss this further, feel free to email me the details. My email is in my bio. |
I sent you a mail :) |
It would be nice to generalize this to
f32
as well.My first thought was to accept an
AttributeIterator
directly in functions likecompute_centroid
. But that doesn't seem like a good solution.Maybe it would be useful to have a super trait of
PrimitiveType
forVector3<f64>
andVector3<f32>
?I would much rather contribute here than wrap
pcl
, so I am happy to work on this if necessary.The text was updated successfully, but these errors were encountered: