Basically, I create curve from 2 points. This works.
I want to make it shorter - not working.
Node network itself is quite simple:
Inside "attribwrangle3", get 2 points, then substract them to get normalized direction
Then I simply prepare data to feed into curve node
And finally I can pretty looking curve
Now, if you look at the curve creation code, those lines:
if(reverse > 0)
{
eachPoint += @pointMoveDirection * -1;
reverse *= -1;
}
else
{
eachPoint += @pointMoveDirectionInverse * -1;
reverse *= -1;
}
they must move end points of curve towards each other and make it shorted. Instead, points are being move in some other direction.
But why? How? I substract P2-P1 and normalize. I have clean line as results. And still.
eachPoint += @pointMoveDirection * -1;
moves points in weird direction, and there are only 2 points within "connected1" group


carve node did exactly what I need