I encounter often, when using the Polybridge node in a procedural network, that the pairing changes when the input geometry does. A lot of times, this leads to poor results and in more complex networks it sometimes messes up the mesh entirely.
One way of fixing this is to expose the pairing shift, but this would mean that I (or worse, another artists or designer using the network/HDA) has to adjust this value everytime something else is adjusted that causes the pairing to change.
In most of these situations, I am able to provide explicitly which points in the first primitive should map to which points in the second primitive with point numbers or custom attributes using wrangles/the Sort SOP or even changing the vertex order using the Add SOP. The problem is that I cannot find out how to provide this information to the Polybridge SOP. Is there a way to do this?
Or, does anyone know the internal algortithm responsible for the pairings? What data does it use?
A very simple example: I have two circle-shaped primitives with an equal amount of points and I use the Polybridge to connect them. When their size changes, the pairing changes with it from straight to diagonal edges (see attachments). I added an integer attribute (red) indicating the preferred pairing (as in: pair points with the same value). This example is rather simple and might be done with a few lines of VEX, but I keep encountering this situation in more complex scenarios where the PolyBridge is by far the most useful tool.
Preferred (straight and according to my attribute):
Image Not Found
When the size changes, it now needs to shift:
Thanks in advance!