algorithm sketch book

7
Algorithm Sketchbook

Upload: qilu-wang

Post on 02-Apr-2016

235 views

Category:

Documents


5 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Algorithm sketch book

Algorithm

Sketchbook

Page 2: Algorithm sketch book

2 3Week . ONE 1

This week we have focused on basic knowledge of grasshop-per, including identifying different batteries and their func-

tions; basic point-creating and random point creating; dividing points on lines; and line connecting.

Note: The process above is the point creating using the module ‘constrict point’. In this case I defined the value of X,Y, Z through using the ‘number slider’. Another interesting module is

called ‘populate 3D’ which is used for populating point within a 3D defined area. I controled the number of points through number slider as well. I also added voronoi at the end to creat single molicule around each random-populated point.

Page 3: Algorithm sketch book

4 5Week . ONE 1

Note: These algorithm are pretty similar to each other and the only difference is that

the way of creating points on curves.

The first one is using the module called ‘divide length’ whereas the second one

is using ‘divide curve’. The given explination in GH for divide length is ‘divide a curve into segments with preset length.’ whereas divide curve means ‘divide curve into equal length segments’. Their functions seemed similar but the result came out when I connect the points together is different.

I connected panel onto each output of the dividing module, the data output reveals that

the output is completely same. Therefore it means the two modules are functioning the same way and creating same recults.

The reason that the points are connected differently is that in the first one I flattened

the data output from divide length. Flattened data makes all datasets under one group and therefore each point acts as a single data and connect to each other.

Page 4: Algorithm sketch book

6 7Week . TWO 2

Page 5: Algorithm sketch book

8 9Week . TWO 2

Page 6: Algorithm sketch book

10 11Week . TWO 2

Page 7: Algorithm sketch book

12 13Week . TWO 2