Varying Tween Distances Based on Angle of Guide Curve

Hello everyone!

I want the density of the tween curves to vary based on the angle of the guide curves. So that the tween curves are closer to each other where the curvature of the guide curves change.
Is there a way to do this?

Thanks a lot in advance! :slight_smile:

Sincerely,
Felix

Tween Curves Varying Density.gh (9.4 KB)

1 Like

this will follow parameter t speed:

Tween Curves Varying Density_t_speed.gh (13.7 KB)

1 Like

“parameter t speed”? Rate of change perhaps? Guess I need to read your references to know what that means? And install Pufferfish, of course. Looks good.

I used a different method (below).

I don’t know if this is correct. (P.S. Pretty sure it’s not!)
Several variations all look less smooth than what @inno posted.

Your geometry is not accurate, the two vertical curves don’t touch the circles. I get better results using Fit Curve on one of the vertical curves, but don’t see tween curves as relevant.


Tween Curves Varying Density_2024Sep23c.gh (14.9 KB)

P.S. Coloring the horizontal polylines in sequence shows they are definitely out of order.

So very wrong! I’ll leave this post to show how not to do it and in case it inspires an alternative to the black box magic of a plugin.

Pretty sure this is still wrong but might be better?


Tween Curves Varying Density_2024Sep23d.gh (29.5 KB)

yes, the first article is really well explained and eye-opening (or at least it was for me :slight_smile: )

the simplest example, also present in that article, that is a good metaphor for what is happening in a Nurbs curve, if you evaluate a Sin function with a given number of point all equally distributed along X, you get different distances in Y which result in different point-to-point distance

that higher and lower density of points can be seen as “speed” of the curve: if you evaluate the curve and drag the slider at constant speed, you’ll see that the point also “slides faster” the lower the density :+1:

2 Likes

I read that and get the idea (sort of…), but my code still needs work. I have to avoid a zero value… TBC (To Be Continued)

1 Like

I took the easy way out by adding a ‘Min’ slider (blue group) so I can move on to other things. I am dubious about using three ReMap components and still curious about a correct answer, if there is one? Seems highly dependent on the geometry, as you can see by skipping Fit Curve.


Tween Curves Varying Density_2024Sep23f.gh (31.2 KB)

Steps’ = 27:

Steps’ = 15:

1 Like

Super interesting article! :slight_smile:
Thanks for the help!