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:
Tags:
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)
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:
perfect thanks for the the less roundabout definitions, all! will upload screengrabs in future posts.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by