Grasshopper

algorithmic modeling for Rhino

Hi! I am trying to figure out how to do my assignment

So I made a spiral that goes along a curve and I was wondering if there is a way to connect the line so they meet at a single point. 

There is an attachment of the ghx file

Views: 577

Attachments:

Replies to This Discussion

You need to make sure your sine wave that controls the circle radii is continuous from the start to the end.

There's also a mismatch between your circle count and your eval t count. You have 1701 circles  but only 1700 eval parameters. That's why you get that weird little wiggle at the end. You can fix it using the ShortestList component, or possible upstream somewhere by adding a x+1 expression or something.

Modified file.

Attachments:

Thanks David!

And can I ask you another question?

So I created a file that compares a list of random numbers and get occurrences of the numbers in the list and the unique individual integers.

I'm also trying to figure out how to get only the most occurred numbers from the list, in this case would be 1 and two.

Can you help me out with it and explain what to do?

Attachments:

This is certainly not the only way to do it, but it's one way.

Attachments:

In addition to the above, this uses the integer to assign paths, then sorts and selects tree branches to get only 2 (can change this with slider named X) most occurring numbers.

Thanks for the help guys!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service