VOP SOPs

   2917   4   0
User Avatar
Member
2624 posts
Joined: Aug. 2006
Offline
Hi,
I wondered if my use of the for loop to iterate through every point and find the maximum distance between points is correct and its not going to fall foul of the condition of an endless loop.

The idea was loop through all points and find each points maximum distance to any other point. This is just part of a small project I am trying to solve concerning points and spreading them out to not get intersections with attached geometry.

Rob

Attachments:
rse_forloop.hip (74.8 KB)

Gone fishing
User Avatar
Member
512 posts
Joined: July 2009
Offline
you're use of npt as an end condition looks correct to me, no infinite looping here. You can test that by printing i inside of the forloop!

best,

Manu
http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
User Avatar
Member
2624 posts
Joined: Aug. 2006
Offline
Thanks for that Manu. I must admit I forgot about using the print vop. I discarded the use of it sometime ago in VOPs as I found it clunky and instead just used the workflow of creating a attribute and pinning it in the details view, so I could see the maths happen.

Rob
Gone fishing
User Avatar
Member
512 posts
Joined: July 2009
Offline
yeah man, printing can save lives if you don't have to do with millions of points
http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
User Avatar
Member
2624 posts
Joined: Aug. 2006
Offline
Another VOP sop problem. See attached.

In the scene file attached I have been trying to figure out how to get the distance to the nearest point per point and express it as a vector X Y Z . You can see I have be able to work it out between 2 known points, but how could I do this over multiple points. I did have a try with a point cloud set up but didn't get anywhere with it. Can anyone give me some pointers as to how I can do this.

Rob

Attachments:
nearest.hip (156.2 KB)

Gone fishing
  • Quick Links