Jump to content
Sign in to follow this  
eko

A question about FindnearestPoints with Points limit

Recommended Posts

Hi,
I have a question! Is there a function about the K-Nearest Neighbor algorithm in HDK. I just find the "findAllCloseIdx(pt,maxdist,list)".It works fine. But I wonder if there is a function like ”pcopen()“ in vex. “findAllCloseIdx" has a "maxdist" option. I also need the "maxpoints" limit to make it more faster.Please help me!

Thanks!

Share this post


Link to post
Share on other sites

Thanks for reply! Yes I have tried that . What I mean is I need points limit. i.e I just want to get 5 points within the maxdist(I don't care if these 5 points are the five closest points) and stop searching even if there is 1000 points within the maxdist. I think it will much more faster for searching.

 

PS. In fact, many methods that return or use GEO_Point objects like findNearestPt() have been removed for the next major release of Houdini.

Share this post


Link to post
Share on other sites

Please use GEO_PointTreeGAOffset instead of GEO_PointTree as the GEO_Point class is being phased out. Consider using the findNearestGroupIdx() method.

Share this post


Link to post
Share on other sites

Please use GEO_PointTreeGAOffset instead of GEO_PointTree as the GEO_Point class is being phased out. Consider using the findNearestGroupIdx() method.

 

That's right I used GEO_PointTreeGAOffset for hdk13. I will have a try for findNearestGroupIdx() method. Thanks !

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×