How can I reorder point indices in a serpentine (snake) pattern in POPs?

Hi,

I’m generating a procedural point cloud with POPs.

I start with a line containing 40 points, then duplicate it multiple times using a Copy POP to create the final structure (see attached image).

The point numbering is currently sequential:


Strip 0: 0 → 39
Strip 1: 40 → 79
Strip 2: 80 → 119
Strip 3: 120 → 159
...

What I would like instead is a serpentine (snake) ordering, where every second line has its point indices reversed:


Strip 0: 0 → 39
Strip 1: 79 → 40
Strip 2: 80 → 119
Strip 3: 159 → 120
...

The point positions should remain exactly the same; I only want to change the point ordering/indexing.

Is there a native POP workflow to achieve this, or is there another recommended approach?

Thanks!

Hi @Xaforsan,

If I understand correctly I think the Connectivity POP might do what you’re looking for.

ConnectivityPOPZigZag.toe (3.8 KB)

Best,
Vincent

Yes it does!

Thank you @vincentDev

1 Like