From the course: Grasshopper: Tips, Tricks, and Techniques

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Anemone: Convex hull

Anemone: Convex hull

- [Instructor] Welcome I have my exercise file open already. In the last video we looked at Anemone and adding loops within the directed graph of Grasshopper. In this video, we are going to use the loop to do something interesting. We're going to create a convex hull around these points. In the Grasshopper script, I have the points here and I'm sorting them by y values. So the first point will be the lowest point. Lowest y value points to the bottom of this top view. And then I'm also creating a set of indices that correspond to that list of points. And then in my loop, I'm going to loop through the same number of times that I have points. So, I'ma check every single point. There's the button that turns this looping on and off. I'ma start with point zero which is at the bottom. And I'ma start with of current vector of x, so vector going to the right. And what I'm going to do is imma take that vector and then I'm going to…

Contents