## Index of Examples

This is an ongoing archive of posts describing specific script examples in Grasshopper. In general, the examples progress somewhat in difficulty, and later examples often refer to earlier examples. If you are learning Grasshopper, you may want to go through them in order. If you are already an advanced user, you can probably just click on the topic or image you think looks interesting and give it a try!

#### 1 – 2D Patterns – Part 1: Grids, Transforms, Culls and Dispatches

#### 2 – 2D Patterns – Part 2 : Attractors and Utility Tools

#### 3 – 2D Patterns – Part 3: Connecting the Dots, Data Structuring, and Tessellation

#### 4 – Surfaces and Topography

#### 5 – Basic 3D operations and working with “Real” Sites

#### 6 – Vectors

#### 7 – Vector Fields with Grasshopper “Field” Components

#### 8 – Basic Recursive Processes

#### 9 – Fractal Forms

#### 10 – Growth Structures

#### 11 – Agent Based Form

**12 – Cellular Automata**

**20 – Large Scale Landscape Modeling**

#### 21 – Case Studies

Advertisements

hi!

first and foremost, i was amazed by your grade-a work.

i would like to ask a few questions about some definitions

but i would prefer in private, if you please.

I tried to replicate the algorithm of icerays via anemone and

i get something but i need some piece of advice to make it

more controllable.

Can i sent it to you?

Thanx in advance

L.C.

LikeLike

Sure, would be happy to take a look at your script! Will email…

LikeLike

Hi;

I was wondering if its possible to make a mini tutorial for how to make an accurate slope map of any site, not only using the the faces’s normal of a mesh but every possible point.

and how to put all the results on the 3d model, 2d plan, and how to draw limits that define each slope.

Thank you

LikeLike

I’m not sure I understand exactly what you have in mind, especially since it is not possible to map “every possible point” since that would be an infinite number of points! But one approach is to work with a surface instead of a mesh, and then “Divide Surface” with a grid with the resolution or accuracy you want. This will give the face normals. As far as graphically expressing this, that is another design question. Also, I’m not sure what you mean by “how to draw Limits that define each slope?” can you clarify?

having said that, one approach to look at the problem you described is explained in tutorial 8.3

LikeLike

Well,

It happen that few days ago, I have found an algorithm that measures the slope (which was previously made by a mesh) not by the faces of that forms the mesh, but by the normal vector at the mesh’s vertices. Basically it take the normal’s “Z” component and use this formula

“0.0 – (Asin(Abs(z)) – 0.5*Pi” (and sincerely I don’t understand how it did came) and to show the results using the gradient component on the mesh.

Mean while, I have made another one, in which you measure the difference between “Z” component of each normal at the mesh vertices, to a unit vector placed at the same vertices, then show the results using the gradient component on the mesh.

But then when I talked to a friend of mine, he told me that my way to measure the slope is wrong since that I have applied the wrong set of trigonometric laws to the vertices vectors.

I could send you the grasshopper file to check the two ways out.

LikeLike

sounds interesting. Please email me your file and I will see what you mean and if I have any recommendations to improve it! josclag -at- hotmail -dot- com

LikeLiked by 1 person

give me 2 minutes

LikeLike

Did you get it ?

LikeLike

Hey, absolutely love this series, thanks so much probably some of the best introductory tutorials on grasshopper. One question, i cant access the last example in “6 – Vectors” it just takes me to an admin page?

Cheers, Mat

LikeLike

Hi! Thanks for the compliment, and yes, the link was messed up. It should be fixed now!

LikeLiked by 1 person

Hi! Thanks for the compliment, and yes, the link was messed up. It should be fixed now.. Enjoy!

LikeLike

Hi,

I just want to point out that whilst browsing through your posts, I noticed the 5th post of 8 – Basic Recursive Processes takes me to an admin editing page.

Thank you for the posts, they have been very very inspirational!

Cheersm

LikeLike

Thanks for pointing that out! Fixed now, and thanks for your positive compliment!

LikeLike

Hi again,

The two cellular automata pages seems to be the same?

Cheers,

LikeLike

You’re right! Fixed and thanks!

LikeLike

Hi,

I would like to inform that the third example link in “3 – 2D Patterns – Part 3” will always direct to “MODULAR PATTERN SYSTEM – EXAMPLE 2.2”

LikeLike

Thanks! Fixed

LikeLiked by 1 person

Hi,

I would like to inform that the example link of 12.1 open as 12.2

LikeLike

thanks! I thought I fixed that weeks ago but the problem keeps coming back…

LikeLiked by 1 person

I know that feeling

LikeLike

Oh wow, this has really helped me out a lot! thanks a ton! 😀

LikeLike