VOP SOP neighbour

   2683   0   0
User Avatar
Member
5 posts
Joined: 1月 2009
Offline
Hi all,

I'm trying to do a VOP SOP wich could return the smaller point ID of the neighbours of the current point, but whose ID would be greater than the current point.

ex:
current point is 43
neighbours are : 52 , 58, 37, 25
return 52

why ??
I'm trying to orient my point normal , looking at the smaller neighbour. The problem is that $PT+1 is not allways a neighbour.

I guess it could be easily done in script, even though I have never scripted in houdini. But my goal is to find a full houdini solution.

So I created a VOP SOP, computed the neighbours of $PT using neighbourCount node and then I found, I guess , the neighbours's ID with the neighbour node. Now I'm trying to do a ForLoop wich compare and return the value…. but I think that my main problem is a “worflow” problem… I don't know how to connect all the forLoop nodes and it's really hard to find documentation and examples of VEX nodes. It's a little bit annoying because it's really simple to write it in full script

Any ideas would be really welcomed !!

many thanks !!
  • Quick Links