background preloader

Grasshopper

Facebook Twitter

AADRL 2013 – Algorithmic and Production Skills with Rhino + Grasshopper – Session 8: Genetic Algorithms » VITRUALITY. In this session we will be looking at some more advanced components and methods of using grasshopper, principally focussing on Galapagos, Grasshopper’s built-in genetic algrithm solver. Along the way, we’ll also be examining Grasshopper’s metaball component and means of flow control – the Grasshopper equivalent of ‘if statements’ in coding. Example 7: Galapagos Galapagos is best used to solve problems to which the optimal solution is not immediately obvious. In this example the problem which we are going to try and solve is to examine a field of points and attempt to enclose as many of those points as possible within a closed curve of a fixed maximum length.

If you want a physical analog – imagine that each point is a pin and we have a loop of string that we want to fit around as many as we can. The first step is to obtain our set of points – you can either use the one in the example file provided or create your own using the Points command and clicking lots. Metaballs Galapagos Max. 1. O---FANCYWIRES--{>} AudioCurves. Example files. Edit 29/04/14 - Here is a new collection of more than 80 example files, organized by category: This zip is the most up to date collection of examples at the moment, and collects together a wide variety of definitions made for various workshops and in response to forum questions. Thanks to all workshop attendees and forum members for your valuable input.

It is possible I've missed a few useful ones. If there is something else you'd like to see included please let me know The examples below are mostly older, but I will leave them here for now until I am certain all the same topics are adequately covered in the 'official' collection above. Showing how the trail component can be used to trace the motion of moving particles The wind component acts on sets of 3 points (typically each the vertices of each face of a triangulated mesh).

CurvePull - Pulls particles onto a curve. The Vortex component rotates one particle about an axis defined by 2 points. (also requires WeaverBird) drape_example.gh. GH: DISTANCE GROUPING. This definition groups objects into lists based on their distances from a point(s) 1. Set points as collectors (they will make the groups)2. Set points to be grouped3. Evaluate the cross referenced distances to find the minimum distances 4.

GH Version Tip One of my personal favorite definitions, it is very versatile.Try it for attraction, structures, coloring, voronoi patterns and so much more. Example files. Archive » Triangulate Surface Grasshopper Definition.