Finding focus of an arc mathematically

Discussion in 'Alibre Script' started by oldfox, Jun 30, 2019.

1. If it is not possible to generate a "tangent arc" using AlibreScript, then I need help with the formula to find the focus of the arc. I want to be able to use a script to generate the arc. Start and end points are known. The arc
must be tangent to the line on the left.

Thanks.

Attached Files:

• Focus of arc sketch.AD_PRT
File size:
234 KB
Views:
2
2. Hi Stefan, thanks for the reply. My math just isn't up to this.

P5 is the Unknown and is needed.

Given: Points - Origin, P1, P2, and P8 is optional
Line 2 (Any length from P1)

Not needed but could be used:
Points - P3, P4, P8

Not needed:
Points - P6, P7
Lines - 1, 3, 4, 5

Lines 4 and 5 were only for "offset" construction and could be reference lines only.
I'm not sure if a Tangent Arc will work with a reference line or not.

Needed:
XY points - P1, P2, Origin
Line for Tangent Arc (line 2)

All lines are parallel with axes. No angles.

The arc radius will be determined by points 1 and 2 and tangent to line 2. Point 1 is the start point. Just like Alibre Design does it.
**********************************************
For a script I would only be using numbers for coordinates and the formula for POINT 5.

If I'm still not clear, just ask more.

Thanks again.

3. Hi Chris -- OK, I assume that you know the Coordinate values for P1 and P2. I will define these as P1 = (X1,X2) and P2 = (X2,Y2) -- OK? Thus the3 Line from P1 to P2 has the Slope of (Y2-Y1)/(X2-X1), right? The Midpoint between P1 to P2 (PM1-2) has the value PM1-2 = ((X2+X1)/2,(T2+Y1)/2). Right? The Slope of the Counterpoint Defining Line is (-1/((Y2-Y1)(X2-X1)) -- Correct? Now you can define the Equation of the Counterpoint Defining Line merely by finding the "Y intercept value." Knowing the Equation of the Counterpoint Defining Line and the Coordinate Values for P1 or P2 calculating the Centerpoint Value should be nigh unto trivial. Right?

4. Lew, Line 3 is not the chord.

5. Hello Chris,

can you draw what you want to get into a sketch including the contraint symbols and post a picture of that?

Regards
Stefan

6. Hi Stefan,
Here's the part with, I hope, all of the information needed to see what I need. If you need more, ask for specific things and I'll get it to you.
Thanks,
Chris

Attached Files:

• Focus of arc sketch.AD_PRT
File size:
337 KB
Views:
6
7. Hi Stefan,
Completely understood. That's exactly what I needed. "The formula". Thank you so very much.
It calculates out to 6 places mm compared to AD's Measure tool.
Plenty good enough for me.
Are your letter variables German? (H, S, R) Radius I get but not H and S.

8. Chris -- I thought that I had defined Line 1 as the Line connecting P1 to P2.

9. I'm very pleased.
Variables are only variables... R can stand for Radius, H for Höhe and S for Sehne which translates to radius, height and chord.
So Bolt on Regards
Stefan

10. Stefan, can you just confirm my rendition of the formula as a script would take it?
Everyone makes a mistake every once in a while. 11. I got it now. Formula works out.

What would be Rivet on. Thanks again.