The software formerly known as Explicit History

For designers who are exploring new shapes using generative algorithms, Grasshopper™ is a graphical algorithm editor tightly integrated with Rhino’s 3-D modeling tools. Unlike RhinoScript, Grasshopper requires no knowledge of programming or scripting, but still allows designers to build form generators from the simple to the awe-inspiring.

Saturday, June 7, 2008

Sort Tutorial

How to sort a collection of points by distance

Download the definition file (made with version 0.2.0012) .

All Grasshopper data is stored in lists. Sometimes this data is stored in a predictable (sorted) fashion, sometimes it is chaotic (unsorted). The Sort component allows you to sort up to 4 sets of data simultaneously, though this example only sorts 2 sets at the same time.Points by themselves cannot be sorted, but numbers can.

This example sorts an unorganised set of points by creating a new list of distance values which acts as the key list. As the key list is sorted, the points are automatically shuffled in the same fashion.

0 comments: