0

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

half way ogf P2P3

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.

JayV
  • 3,238
  • 2
  • 9
  • 14

1 Answers1

0

The maximum radius of an arc between two lines in 3D depends on the distance between the lines and the angle between them. The radius of the arc is given by: code example : r = (d / 2) / sin(theta / 2)

Where d is the distance between the lines, and theta is the angle between the lines. The radius r is the maximum possible radius of the arc that can be formed between the lines, such that the arc lies in the plane that is perpendicular to the direction vectors of both lines and bisects the angle between the lines.