Thank you for the detailled hip, that's very kind of you :)
Makes me feel very humble too, as it obviously will take time to understand all this. I do very little steps :)
My knowledge of Vex is very new and poor, that's why I splitted in vex + vop.
If I'm no wrong, the super clever line might be this one :
int pt1 = min(neighbours(input, pt0));
Min neighbor is what ? the closest neighbour to pt0 ? The neighbor with the smallest index ?
At a moment, I was thinking using the Normal (@axis ) to find the P1. Assuming that @axis position is on P0 and is pointing toward P1. But I'm unable to translate this.
P0+@axis =P1
The conversion Local to Space is loosing me a bit. Is this an invert matrix thing (like in ice ) ?
I realise I've been wrong route with the arrays. Yes I end up with array per points which makes it very confusing.
Thank you a lot for providing this, it's a hell of an effort to understand, but the exercice in itself is very educative even if I only get portions of it :)