How can I draw a arc, from this 2 points and one tangential line(Line AB)
do you know corresponding grasshopper component for that prompt?
P.S.
arc_tan_2024Apr14b.gh (11.6 KB)
P.P.S. Add Galapagos and âBobâs your uncleâ (solved!).
arc_tan_2024Apr14c.gh (13.2 KB)
NOTE: I moved one of the points so the tangent point is different⌠When I restore the original points (used by version âaâ and âbâ) the slider value with Galapagos is 0.60355
Hi Joseph,
There is actually a direct geometric solution for this so successive approximations can be avoided.
Hereâs a partial solution, giving circles rather than arcs (given there are potentially six arcs per solution, depending on the positions of the points and any constraints on which arcs are permissible in this case, which wasnât explicitly defined in the problem statement, the hard part is picking the arcs from the possibilities).
Circles Pt Pt Tan.gh (13.0 KB) [EDIT: Iâve replaced the original gh file with one that doesnât require the Treesloth plugin]
The geometry is nicely illustrated here: Construction of a circle through two points and tangent to a given line â GeoGebra
But not with standard GH components? Your geometry is not internalized.
P.S. I âfixedâ your cluster:
Circles Pt Pt Tan_2024Apr14a.gh (9.3 KB)
P.P.S. The geometric construction is certainly interesting - I love geometry - but the results are two branches, each with two circles. The branches appear to be duplicates? And one of the two circles doesnât touch the line, so could be culled out, based on curve proximity rather than circumference because itâs not always the smaller circle depending on point positions.
Oh, sometimes both circles are tangent to the line? Cool.
This doesnât change your cluster but adds culling based on curve proximity. Depending on point positions relative to the line, one or both circles will lose their color when they donât touch the line (within given âToleranceâ vaue).
Circles Pt Pt Tan_2024Apr14b.gh (26.7 KB)
Argh, I always forget that First/Last isnât native gh. It really ought to be.
I think this is because in replacing First/Last with Item youâve connected both values to Dist - you only need one connected (the two points, P, are equidistant from Pt 1).
Yep. And if the line is infinite there will always be two circles that are tangential to it (provided the points are on the same side of the line - there is no tangential solution if they are on opposite sides), except for the special case of two points on a line parallel to the given line, when there is only one circle.
I guess duplicate results are better than no results. Canât replicate a component I donât have.
If the line goes between the points there is no solution.
Indeed, as I said two posts up!
Wow guys Thank you! It really helped me alot !