I have found this solution to draw an arc between two points in 3D. solution
Can anyone help to find a way how two limit the radius so the arc starts at max half distance of the shorter line
I have tried some simple geometry method of finding hal of angle between the lines and then calc the radius from r = tan(half_angle) but this works only for an angle close to 45 deg.