Move collection of points by a distance 'cosine'


#1

Hi All,

I am trying to move a set of points so that they have a ‘sine’ like offset. In grasshopper I would use a graph mapper but am unsure how to do it in dynamo. I drew in red the ‘pattern’ im trying to get at.

I attempted adding a “math.sine” into the y component, but I think my list structure needs to be flattened.

couldn’t upload the script i have so far, says new users cannot attach files.

Any help would be greatly appreciated. Thanks.


Select sheets by volume type
#2


#3

move points_sine wave.dyn (20.5 KB)


#4


#5

cool, that helps get my head around it.

if i want a more ‘user defined wave,’ i’ll take the array of the curves. divide them, then with a list item select the point i want from each line and then make a nurbs curve through these points.

could you explain what the ‘#c’ is doing?

much appreciated.


#6

Do you mean like this:

Using a simple geometric controller (the points are controlled by the user):


Graph Mapper in Dynamo or Equivalent
Non-linear distribution of panels
Progressive Division of a Curve
#7

c is the length of the x-coordinate list
#c’ helps create a y-coordinate list of corresponding length

This might help you understand…


#8

thanks for the help. i came to this conclusion.


#9

@dkalant Could you upload image again it is not visible.


#10


#11

Hi @dkalant
That seems to be an interesting example of incremental rotation (?)
Sadly we can not see the name of your dynamo components.
Would you mind sharing it again? That would be very helpful, Thank you