Jump to content

A question about FindnearestPoints with Points limit

Recommended Posts

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!


Link to comment
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.

Link to comment
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 !

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...