## Changing Topography with a Curve Attractor – Example 4.5

Many of the examples we looked at in the 2D Patterns can be adapted to create geometry in 3 Dimensions. In this exercise, we use the same logic employed in the Curve Attractor Example to move a grid of points vertically to create a river valley.

The logic here is pretty simple. The curve is sketched out again in Rhino. The further you are away from the curve, the higher your “Z” value is. The rate at which this happens is determined by a slider, which allows you to increase or decrease the slope. There is also a maximum elevation at which the curve attractor functions. This is pretty simple, but could be combined with other methods of vertical movement to create a quite complex landscape… For now, however, here are a few potential variations just changing two simple parameters.

I won’t explain this in detail, but will provide an image of a possible script below. You could also try reversing the attractor to create a snakelike landform…

And here is the script…

Hi I was wondering what expression you used in the SrfGrid component? Thank you for your help!

LikeLike

That should be U+1 – The number of values in the “x” direction, in this case 80, defines the number of cells, but there are actually 81 columns of points in the X direction.

LikeLike