How to create circle tangent on curve

I would like to create a circle tangent to a curve like the picture. I don’t find anything in the Rhino 5 SDK. I use c++ with language.
Has anyone done this?

Hi @Luciano_Luiz_da_Silv,

I don’t believe the V5 C++ SDK had a function to compute a circle in that manner. But you can do so on your own. You’ll need to compute a circle plane based on the curve’s tangency and curvature give an location. From that you should be able to create what you want.

– Dale