Foreach Loops in Fuse

I have this patch where I would like to recreate cellular noise on its most basic level:

Capture5

Now, I wonder how to make the same patch for many points using a for or foreach loop:

Capture6

That patch above doesn’t work, vvvv crashes and I wonder what I did wrong?

Voronoi.vl (16.8 KB)

Thanks a lot!

You have to use the Fuse foreach loop that creates shader code. The VL foreach creates CPU code, which in your case creates a list of individual Min value shaders.

but look - there is no fuse foreach loop:

CaptureF

And the For(Fuse) loop is not clear to me:

CaptureV2

Check GetItem and Index nodes.