Help connecting the dots

   381   2   1
User Avatar
Member
5 posts
Joined: 11月 2021
Offline
Hello everyone!
I'm working on this little project where I want to connect one dot with its closest point, and repeat the process starting from that closest point.
I'm struggling a bit because my setup works only for a couple of iterations.
I'm noticing that when I iterate, the point numbers change (seems like the last point is removed) and I can't figure out where the error is.
I feel that my setup is wrong, but is the only one that gave me some (very weak) results.

How would you approach this task and why the point numbers change?

Thanks in advance to everyone who takes time to reply.

Attachments:
connect_dots.hiplc (130.9 KB)

User Avatar
Member
2568 posts
Joined: 6月 2008
Offline
One thing to remember is that when inside a loop, there is only one point, point #0. Every single point presents itself as point #0 while inside the loop. So your first attribute wrangle is always true. Don't forget to leverage the Single Pass feature located on the Block End node of your loop. Activate the checkbox to step through each iteration of your loop.
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Member
5 posts
Joined: 11月 2021
Offline
I managed to solve the task scrolling through each iteration for debugging purpose. Actually, the Single Pass feature doesn't work with the feedback loop, but you can achive the same result activating the "Max Iteration" on the Block End node.
Thanks a lot for the hint!

Attachments:
connect_dots.hiplc (137.3 KB)

  • Quick Links