In vex, I want to reverse a 2-pt line so its points switch their order (like Sort->Points->Reverse), but I can't get it to work. I tried rewiring the vertices on the existing prim, but the prim still retains its order;
It would be incredibly inefficient to try to do that in VEX
In your code all you are doing is just rewiring vertices or recreating new ones and attaching to the same 2 points If you want to reorder points you would need to also swap all their attributes including P
Found the issue: the line shared points with other prims. I had to "break out" the line by creating copied new points (which can't be fused or they'll snap back to the orig. order).