Hello everyone!

I need to know how to measure the distance between each points on each curve, either horizontally (on the same curve) or vertically (on curves respect to eachother) respectively!.

Thanks 4 your help.

Distance-P.gh (6.7 KB)

Hello everyone!

I need to know how to measure the distance between each points on each curve, either horizontally (on the same curve) or vertically (on curves respect to eachother) respectively!.

Thanks 4 your help.

Distance-P.gh (6.7 KB)

Thank you @Rajeev2 .

here I did another logic in order to create tangent circles on each curves.

But I need to know how to find a soltution for parameterizing number of curves with tangent circles on each curve.

Distance-P.gh (16.9 KB)

1 Like

exactly, how did u do that?

could u share ur .gh file with me?

Distance-P.gh (8.2 KB)

Sure here you go.

the logic is pretty simple but without a recursiv method extrem tedious â€¦its only a scaling factor.

a = The first radius of your arc - the radius of one of the circles.

b = The first radius of your arc + the radius of on of the circles.

scaling factor = b/a.

radius*scaling factor = radius for the next arc.

You have to send the result back to the beginning to growâ€¦not possible in grasshopper without codeâ€¦maybe with anemone.

If you want to use offset use R0 (the arc radius) output with realtive difference and mass addition and you get the offset distance.

2 Likes

so informative,

Thanks for your helpâ€¦

1 Like

@flokart Another questionâ€¦

I really liked how u solved the problem with this logic!

is there any book or smth like that wich can help me to boost mathematical solution-finding ?

They way u reached to solve the problem ,touched me!

I appreciate that

This is at the beginning scribbling and thinking what is repetetive and keep the same valueâ€¦trying to find the most simplest iterative part.

Second stage â€¦first i saw the parralle lines with the same angle so the conclusion was some factor for scaling then i saw the diameter of the circles are repetive with a scaling factor.

Here i tried grasshopper for the first testâ€¦it worked so i start coding the recursive function.

My solution is not clean as you see here because the script calculate the factore every time but the only thing that is recursive is the multiplication between the factor (constant (division)) and the new result (recursive).

Sorry i have no book just fun to tackle some challenges and it took me near 3 hours to find, test and code the solutionâ€¦and this solution is not clean and good as it could beâ€¦the most simplest and cleanest one are the most difficult to find.

Just try and error to get more and more solutions.

3 Likes

Thank you so much for sharing the logic behind it!..

The way it started from drawings to codes was really interesting â€¦ . Congrats.

By chance if u have youtube channel or smth like that which I can follow, Iâ€™d like to have it.

Thank again for sharing your thoughtsâ€¦

1 Like

maybe for painting but not for geometry or math solutions.

I just want to keep some brain muscels alive so bring on your challenges .

â€¦

I willâ€‹:pray:

1 Like