SinWave, damper wave, creating a loft, point-oriantation?


SinWave.dyn (24.8 KB)

Hello,

I want to create a sin wave first, i would like to create sweep ( or a bend with two profiles ).
To place a profile (triangle) i want to set my plane on a point , but can`t change the orintation of my planes.

in dynamo there is just a classic sin-wave… how do implement a damper sin Wave ? should i place some kind of increment in my forumula ? or is it more comlex ?

the tutorials for python are based on external simulation, but how do i deal with that with points?

KR

Andreas

Something like this perhaps?
Reducing sin wave

This should get you started:


x = 24..360*cycleCount;
a = amplitude;
xBase = DSCore.List.TakeEveryNthItem(x,2,0);
xVal = DSCore.List.Join([DSCore.List.Reverse(xBase),xBase]);
y = DSCore.List.ShiftIndices(
		a*Math.Pow(Math.E,-xVal/360)* (Math.Cos(2*xVal)+Math.Sin(2*xVal)),
		shift*(cycleCount*6)
	);
crv =
	NurbsCurve.ByPoints(
		Point.ByCoordinates(x,y)
	);

3 Likes


@jacob.small ,

What are your imputs… ? integers? or even vales … between 0…1?

KR

Andreas

Number
Number
Datetime.Now > Datetime.Components > n%60*360

Then run in periodic

1 Like

@jacob.small ,

it seems to be all points are at the same place…

i want to create points and generate a other curve thats mor smooth…

Was smooth for me, perhaps geometry scaling?