Grasshopper

algorithmic modeling for Rhino

Hello friends

Major newbie here, part of my coursework is to try making basic geometries purely on grashopper instead of Rhino, to that end I've tried to make a distorted circle which I would use as a base for lofting and such - 

similar to something like this - Ive attached the definition Ive got so far - I divided the circle into points, then I moved every second points away from the center of the circle. 

My issue is now trying to make a curve from the two sets of points, because instead of making a closed curve, it just loops around itself. As I understand it, it's because grasshopper draws the curve from the first list of points and then uses the second list of points. Is there away to merge the two sets of points together in the order it originally was in?

Or am I overthinking this whole thing and there's a simpler way to make that squiggly circle above?

Any help you can give would be appreciated c:

Views: 662

Attachments:

Replies to This Discussion

Hi Jan, 

You were close, all you needed to do was weave the points back into order before drawing the curve. This can be done 2 ways I have added both. Also I did a little edit on your script to simply it a little. 

Hope its some help.

Matt

P.s if you upload a screen shot of the problem in the code, like I have above sometimes questions get answered faster as we then don't need to have access to rhino/GH to answer. (File>Export Quick Image)

Attachments:

Hi Jan,

I recommend using an order retaining data splitting approach. Instead of culling data (which removes unwanted items altogether) use a Sift/Combine solution instead. Sifting sets unwanted data to NULL, which means it's much easier afterwards to recombine all the different data streams and end up with the same order:

Attachments:

And here's a solution that doesn't involve splitting up the data at all. Instead, the points that should remain on the circle are moved by a distance of zero:

Attachments:

...or put a tree on it?

...or super old school

perfect thanks for the the less roundabout definitions, all! will upload screengrabs in future posts.

You can use Ctrl+Shift+Q to make quick screengrabs including rhino viewports.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service