Circle tangent to 3 Curves (3d) documentation

looks like
_circle _tangent
fits a sphere and outputs the circle through the 3 tangent points…
if this is the case - that s fine - and it looks like this:

but:
it would be nice if:

  • the documentation is more precise about the result for none planar curves
  • the command line feedbacks the none planar setup.
    i see a nicely hidden error-trap here if the user is on a nearly planar drawing and does expect a “2d” result.

circle_tangent_3d.3dm (3.5 MB)

kind regards -tom

Isn’t this the same for any curve making command? Feels a bit unneccessary to have documentation related to creating curves mention that you get 3D output from 3D input.

I support these suggestions.

This is an example of a command sometimes returning a result which may not satisfy the request. When the Circle command with the Tangent options is use and the input curves are not coplanar then the resulting circle will not be tangent to one or more of the input curves except for a special case. The user should be warned that the result may not be what they requested - circle tangent to the three curves.

The circle returned with non-planar input curves using the sphere fitting method may be useful in many situations but users should be explicitly warned not to rely on it actually be tangent.

More details for those interested:

For two curves to be tangent (using curves to include lines, circles, ellipeses, etc) curves must coincide at a point and the tangent vectors of the curves at the point where the curves coincide.

If the three curves are coplanar then a circle can be tangent to each curve. (The existance of the circle is not guaranteed.)

Usually if the three curves at not coplaner then the circle will not be tangent to at least one of the three curves. (See the example in Tom’s original post.)

Special case: If three curves are not coplanar but their tangent vectors at the points where the circle coincides with the three curves then the circle will be tangent to the curves. Example:
circle_tangent_3d Special Case DC.3dm (47.8 KB)

Not the same. Most curve commands do not have results which do not satisfy what they claim to do.

great - thanks David for chiming in…

your special case looks like a sub-category of special cases:


the tangent points are knots and curvature is in the circle’s plane.
…
there is more freedom:
… rotating the green curve around the tangent point / axis:

… or more…

circle_tangent_3d Special Case DC_and_tom_p.3dm (3.0 MB)

kind regards - tom

There are an infinite number of special cases. But there are also an infinite number of sets of three curves which are tangent to a sphere but not tangent to a circle. And there are an infinite number of sets of curves for which there is not a tangent circle or sphere.