Fitting circles along a curve in a tapered shape

I’m essentially trying to replace a tapered curve with an approximation of it using circles whose middle points lies on the middle of the curve. I have made something, but it isn’t great. It requires too much manual input and the circles aren’t totally evenly divided due to my method.

Help would be greatly appreciated


circle fit.gh (30.0 KB)

Hello,

Here is a solution using CircleTanTanTan.

image

You may need to slightly adjust the curves here, I think results will be slightly better in that area if they are coincident.

image

If you need the amount of circles to be parametric instead of a cascade of components, I think some code is required.

Also : is it normal that your curves don’t lie on XY plane ?

circle fit.gh (23.5 KB)

Looks great, but when I run it, it requires me to input a point in the curve closest point’ node. Not sure what to fill in there, other than that there is no result yet.

It would be nicer if the amount of circles was set parametrically, but it’s not necessary per se, I could fill them in manually as well.

Thanks for your input :slight_smile:

Not sure what is missing on your side ?

Why are the curves not planar?

I did this almost nine years ago. Can’t locate the GH file yet… :thinking:

arc_Feb27bb

Feb 27, 2014

1 Like

Ah, I didn’t know either. But apparently curve midpoint was missing. Don’t know how, it also looks different now that I added it. But it works now! Thanks :slight_smile:

1 Like

I somehow moved a control point up while adjusting the curve. It’s not important, this is not the shape I want to use in the final version anyways.

oh wow, that’s pretty perfect. If you find it, I would be happy if you shared it.