# A spring segment

PaulR shared this idea 12 years ago
Declined

Hi

Would it be possible to create a spring segment tool? This would be a spring shaped element between two points. It should be able to stretch or compress nicely if the points move.

I do not use V4 or 5 so forgive me if it is in there!

regards

Paul 1

Hi

try this one

Best regards

Daniel 1

Sweet!

It would be nice to have a built in one though. A smooth curve like a 2D view of a helical spring.

Thanks

Paul 1

Hi

A smooth curve like a 2D view of a helical spring.

This could make a tool a little heavy but we can still try.

Daniel :laughing: 1

Thanks Daniel

As you say, a bit heavy in the construction department!

I had a go at this game myself and came up with this spring. The idea comes from a bycicle wheel, radius r, with its axle moving from r to L on the x-axis at speed v. A point on the wheel must start at 0, do n full turns and end at L. This means that

x = r + cos(Pi-wt)+vt

y = rsin(Pi-wt)

and to do the turns correctly w = 2*n*Pi and v = L for t from 0 to 1.

To go from point A to point B then

L = distance[A, B]

We must also rotate the interval 0 to L into the interval A to B so put

e_1 = x(B-A)/L

e_2 = y(B-A)/L

now plot the curve

curve[x(A) + x*e_1 - y*e_2, y(A)+x*e_2 + y*e_1, t, 0, 1]

In the attached construction (v3.2) I changed r*sin to 2*r*sin as at gives a nicer looking spring.

Then a tool like Spring[A, B, n, r] can be made.

regards

Paul

https://ggbm.at/547969 1

Nice Paul

Can I use it for Geogebra files in physical sciences for the balance and energies with the springs.

Daniel :P 1

I'd be honoured - your stuff is fab!

Paul 1

Is it still available?