I'm struggling with a 3D math problem and need some help.
The problem is as follows:
- There's a line in 3D space defined by two points, p1 and p2 (see Front View screenshot).
- This line represents the bottom edge of a flat metal bar, welded onto a pipe.
- There's a pipe centered around the origin with a known radius, r (see Top View screenshot) .
- I want to calculate the distance, x, between the pipe centered around the origin, and the line, so that I know the width of the flat metal bar.
Maybe there's some other solution that would you propose given different known facts?
Using Python code in FreeCAD or describing a solution in terms of mathematics (vectors, planes, etc.) would be great!
Let me know if my question is not clear enough!