# Grasshopper Scripting Gallery

 Grasshopper Gallery Pages Robert McNeel & Associates

Summary: A gallery of examples of Grasshopper Definitions.

# Workshop Files

 Name Preview Description VB.NET Code samples Here are six examples with increasing difficulty using VB scripting starting from simple expression all the way to using functions. I did mutiple methods for some of them to show various ways to get same result. Contact Rajaa Issa VB Switch Gate Explains how to switch between lists.

# Curve Generators

 Name Preview Description Spirograph Rose Curves 1 Create both 3d and 2d rose curves Fractal Curve Generator Experiment by using a Base and Generate Curve to create different fractal shape. Contact Rajaa Issa Fractal Curve Transformer Experiment by using a Base and Generate points to transform different fractal shapes. Contact Rajaa Issa

# Utility Script Definitions

 Name Preview Description Random Curve Divide no preview available Divide a line generally in an equal number, with a little randomness in the spacing. Create Clamped Nurbs Curve Create open or clamped NURBs curve using GH VB.NET component. Contact Rajaa Issa Create Periodic Nurbs Curve Create closed or periodic NURBs curve using GH VB.NET component. Contact Rajaa Issa Create curves from lists of points Create series of curves through connecting points of same index in 3 groups of points using GH VB.NET component. Contact Rajaa Issa For...Next Loop Example An example explaining the structure of For.. Next loop. Contact Rajaa Issa Find sum of numbers no preview available An example explaining how to find the sum of a range of numbers using VB.NET. Contact Rajaa Issa Divide surface An example explaining how to divide surface domain and extract rows of divide points using VB.NET. Contact Rajaa Issa Sweep surface 1 and 2 An example using VB.NET to sweep a surface. Contact Rajaa Issa Create a grid of points the extract u and v direction isocurves An example using VB.NET to process a one dimetion grid of points and extract curves in U and V directions. Contact Rajaa Issa

# Excel Script Definitions

 Name Preview Description Read Excel Spreadsheet Data into GH Divide Read cell values and points out of an Excel Spreadsheet. Based on information from Liquid Tectonics Grasshopper data linked into Microsoft Excel @@Image(””,”Excel Connection”, “750”, “225”)@@ Point data from Grasshopper directly into Microsoft Excel. Designer: Zach Downey

# Generative Algorithms: Lindenmayer-System (L-System)

(Samples were developed in support of Georgia Tech graduate course on generative design in architecture, Spring 2009)

 Name Preview Description Koch Curve. Grasshopper and RhinoScript samples. download... The algorithm is defined in 2 different methods. the first uses 2 functions. One for generating the string and the other to create points. The second method uses one recursive function to generate points directly. Check wikipedia for theoretical details. . Contact Rajaa Issa Penrose Tiling. Grasshopper and RhinoScript samples. download... Check wikipedia for theoretical details. . Contact Rajaa Issa Sierpinski Triangle - V1 and V2. Grasshopper and RhinoScript samples. download... Check wikipedia for theoretical details. . Contact Rajaa Issa Fractal Plant. Grasshopper and RhinoScript samples. download... Check wikipedia for theoretical details. . Contact Rajaa Issa Dragon Curve. Grasshopper and RhinoScript samples. download... Check wikipedia for theoretical details. . Contact Rajaa Issa

# Generative Algorithms: Cellular Automata (CA)

(Samples were developed in support of Georgia Tech graduate course on generative design in architecture, Spring 2009)

 Name Preview Description Conway Game of Life. Grasshopper and RhinoScript samples. download... The algorithm is Conway's game of life. Check wikipedia for theoretical details. . Contact Rajaa Issa

# Digital Design Studio: Conceptual Skyscraper (B. Arch. 8.5 weeks), supervised by dr. Chengyu SUN

(Samples were developed by 4th year undergraduate students, Tongji University, China, Spring 2009.)