DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Drawing a line tangent to two curves (or two points on one curve)

Started by DavidKeasey, February 01, 2016, 06:53:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DrollTroll

David, you can simplify things a bit in your method. You don't even have to vector convert the curve.
First draw a temporary line by "eyeballing" it so you know approximately where the tangents will lie.
Next use Arc (3-point) and snap 3 points in the close vicinity of the likely tangents (one arc for each "hump").
Draw Line Tangent to Two Circles, and click near the two arcs.
Delete the arcs and your temporary line.
Your result should be quite close to the mark. You can zoom in and refine the result further by repeating the steps with each approximation.
25 years with DesignCAD

DavidKeasey

That's about what I figured out, but was hoping for something a bit more "exact" but still simple.   Oh well!  If the error is less than 0.00001 of a drawing unit, I suppose it doesn't matter much unless you are trying to close an area.

As a practical application, I decided to use the approach you suggested, but the temporary arcs and lines will go onto a separate layer of "miscellaneous construction aids."

There are lower-end CAD programs out there that have floating tangent snaps that work reasonably well considering the difficulties of which tangent point to use for a complex curve.  From what I've seen, the "starting point" floating tangent works pretty well on arbitrary curves, but the endpoint tangent seems to behave only for circular arcs.

The Scud

BETA tester from long ago.
User of:
SolidWorks 2024, CREO10 and TurboCAD Professional.
FIM Senior Technical Steward for MotoGP.
Work at: Semi-retired..

j-wetzel

I have had to do this in preparing drawings to serve as illustrations in mathematical articles, and for this a close approximation suffices.  I just drew a line that visually approximates the desired tangent line, moved it close, magnified the heck out of it, and then fiddled.
In the plane, if the equation of the curve is known, the mathematical question can be manipulatively (if there is such a word) difficult or impossible, and the relevant equations frequently can be solved only numerically (using a tool like Mathematica.  Approximating small pieces of the curve by circular arcs is a clever approach, and would surely suffice for my purposes.  But get close, magnify, and fiddle also works for me. 
--Jack