2 nearest point distances

   6570   4   1
User Avatar
Member
665 posts
Joined: July 2005
Offline
I am trying to create a SOP vopnet to find the distance of the two nearest points to a given point, similar to the output of a Voronoi Noise. Basically there are two inputs, the geometry, and then a point cloud for the geometry to check against.

I assume this can be achieved with a simple While/point cloud misc. in VOPs, unfortunately, my knowledge on how to create the while loop in VOPs is a bit weak. As in what gets plugged in where and all that :?

thanks for your input!
-j
User Avatar
Member
7715 posts
Joined: July 2005
Offline
In VEX/VOPs, I think you would need to use the point cloud functions. In SOPs, the AttribTransfer SOP is probably enough.
User Avatar
Member
665 posts
Joined: July 2005
Offline
Thanks Edward. I am trying to get the discreet positions of the two nearest points, unfortunately the Attrib Transfer blends the positions of these two nearest points… Hmmm, back to my while loops…
User Avatar
Member
7715 posts
Joined: July 2005
Offline
I thought there was a way to make them not blend. Like making it only consider 1 sample.
User Avatar
Member
665 posts
Joined: July 2005
Offline
Ha! I got it. Turned out I couldn't use attribtransfer because there was no way to only isolate the second closet point…
And thanks Luca, where ever you are for those example files on the exchange…

Attachments:
2PtsDist.hip.gz (18.1 KB)

  • Quick Links