Jump to content

VOP SOP neighbour


Alkos

Recommended Posts

Hi all,

I'm new to this forum, even though I read it for a long time now

I have posted the problem on the SideFX forum but nobody seems to answer... so I try here and hope I will have more result. I think there are some really good houdini geeks around there ;)

so 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 Wink, 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 Smile

Any ideas would be really welcomed !!

many thanks !!

Link to comment
Share on other sites

  • 1 year later...

How to change algorithm (smalest_larger_neighbour.hipnc) that the greatest value came back?

example:

current point is 43

neighbours are : 52 , 58, 37, 25

return 58

It has appeared not difficult :))

The file was not attached...

Edited by Vitaly
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.

Guest
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...