ehsan parizi Posted October 29, 2011 Share Posted October 29, 2011 Hi all, Is there any way to find the Nth. nearest point for each point in a geometry? Quote Link to comment Share on other sites More sharing options...
petz Posted October 29, 2011 Share Posted October 29, 2011 file is attached. petz nearest.hip Quote Link to comment Share on other sites More sharing options...
eetu Posted October 29, 2011 Share Posted October 29, 2011 (edited) You can get N closest points with the vex pcopen() function, or the vop equivalent. I think they might come in order of proximity, but I'm not sure if it's guaranteed. Of course you can sort them if need be, but it's a few more lines.. (I've done that for another reason) (Hooray for vex arrays) http://www.sidefx.com/docs/houdini11.1/vex/functions/pcopen EDIT: Ah, petz got there first Edited October 29, 2011 by eetu Quote Link to comment Share on other sites More sharing options...
Annon Posted October 30, 2011 Share Posted October 30, 2011 Nice one Petz, really helpful actually. Christian Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.