Circle tangent to two curves through point

I was wondering if anyone had a script to do a circle tangent to two curves through a point (which in my case would be on the one of the curves).

I don’t have a script but it is possible to solve this with Grasshopper. The centre of the circle will be at the same offset distance from the point and both lines. So generate three offsets (the one round the point is a circle) and adjust the distance until you get an intersection between the circle and the first offset that coincides with an intersection between the circle and the second offset. bake that point and it is the centre of the circle you want, having a radius equal to the offset distance.

Here is an example, with a gh file which does that. You will probably need to adjust the offset slider range to suit the distances in your own work.

TwoTangentsAndAPointExample.3dm (42.4 KB)
TwoTangentsAndAPoint.gh (17.3 KB)

HTH
Jeremy

Hello - Circle > Tangent should do that if your point is something ‘snappable’ on the second curve.

-Pascal