It works, so no question about how to solve this.
But I have the feeling/idea that this could be done much easier, but have no idea how. Like to learn from your reactions.
This is how I did it:
Created a cylinder
Created a (temperorary) line, what hoovers a bit above the spot I want it.
Then started the searching because: no tangent lines possible to cylinder only to circle.
Tangent lines must be in same plane as cylinder.
Found closest point between line & cylinder
Made an isocurve there
Made a temperory line (projection of first line in same plane as isocurve).
tangent lines on cylinder (isocurve).
use the one I needed, and used endpoint for final line.
I checked all them (in a quick way). All very quick. And somehow I like nr 4 best.
But⊠maybe I did not mention that enough in my first version.
I started with the line and it is in an angle to the axis of the cylinder.
Most of my effort is put in finding a tangential point on the cylinder from there.
Can one or probably more of your suggestions used for that?
And this is a different thing, I wouldnât call it a solution based on your description.
I was just wondering if you need the circle to be planar from the beginning, as opposed to fitting a circle through two points resulting from intersecting the cylinder surface with a line perpendicular to the line youâre angling: line tangent on cylinder3b.gh (18.2 KB)
Not easy to explain in words, what I am working on, but maybe this image helps. I want to transform this into a precisely fitting tunnel (solid difference) in a bigger part to be 3D-printed in 3D, The belt is supported all the way around and when pulled the load is spread equally.