cudaKDTree icon indicating copy to clipboard operation
cudaKDTree copied to clipboard

How to keep track of the order of d_points after calling buildTree?

Open jizhu1023 opened this issue 1 year ago • 1 comments

Thanks for your great work! It's been incredibly useful for my projects.

I'm currently integrating it into a new application and need to keep track of the original order of d_points after calling buildTree. Could you advise on how to achieve this or if there's a way to map the original indices to their new positions after buildTree runs?

Appreciate any help you can provide!

jizhu1023 avatar Feb 19 '24 03:02 jizhu1023

Using Non-Default Data Types should help.

struct PointPlusIndex{
  float3 position;
  int    index;
};

yjf0602 avatar Jun 05 '24 12:06 yjf0602