Posts Tagged ‘Grasshopper’

GRASHOOPER A tool for generative modeling that allows you to create parametric models, parametric architecture in Rhinoceros 3D environment Interface plug-in The process of modeling in Grasshopper is the creation of an algorithm. At Grasshopper the interface, it means that we write the script text, and we connect years and we set some options. The algorithm consists of the initial data or parameters and the sequence of actions with them. As a result, geometry and related information (volumes, areas, markings, sizes) are generated. With the help of noses and parameters, geometry can be changed, you need to change the value of one year and make a shift, and all geometry will be rebuilt. Thus, in Grasshopper we create not only a model, but the logic of its behavior. Once you have created a script, you can reuse it and edit it further. In this model, the task was to build a geometry dependent on the point of attraction. Attractors in a rectangular node You can add an attractor to a suitable site in three ways: drag the element onto the agent chart or use the drawing mode, in which case the graphics editor will select the shapes suitable for setting the attractor; or select the node and add the attractors by clicking the Attractors button … in the node properties. The created geometry is easily changed by changing the parameters of the code components.
Class: Technology, Rhinoceros, Grasshoper
Software: Rhinoceros, Grasshoper
Challenges: Optimize the position and rotation of towers on the site
  Optimize the position and rotation of the towers on the site by creating certain conditions. First, the towers are placed on the territory in a random position, then we give them parameters for placement and gives the program the command to start searching for all and the best possible options. The more conditions are set, the fewer options the program will have and the desired result will be closer to the goal.
    
Picture 1 – the initially given geometric data in the Rhinoceros, which are connected to the Grasshopper. Picture 2 – what the model looks like after attaching all the geometry to the grasshopper and adding the geometric parameters of our city – Moscow.

General composition of parameters. In this scale, the details of the code are not visible, so consider them in larger order.

1 part, responsible for attaching the geometry to the code, also breaks the points of the upper and lower surfaces, for the subsequent convenience.

Part 2 is responsible for the random distribution of towers on the territory in order to make the process as independent as possible from a person.

Part 3 was used to imitate the sun. An inclined curve was joined, divided into control points, from which the buildings were built. Later it was replaced by a real sun with orientation to geolocation.

Part 4 connects with ladybug the real position of the gps data to the city’s location, its weather and the trajectory of the sun throughout the year, with the help of which shadows are built for the model.


Parts 5 and 6 are responsible for setting the main tasks for optimization: that houses would not stand on top of each other, that would not go out of the plot, that would not stand in the shadows of each other, do not come closer than at the nth distance to each other etc. In addition, the strength of each condition can be specified separately, i. E. for example, the condition not to stand on each other is equal to 1, but not to stand in the shadow of a friend only 0.5.


The optimization process, when the program goes through all possible options and selects the ones most suitable for the required parameters.


All variants of the optimization process depending on the given conditions.


Final result.


Post-production of optimization.
         

address: 20 Myasnitskaya ulitsa
(metro stations ‘Lubyanka’ and ‘Kitay-Gorod’)
Moscow 101000 Russia

phone: +7(495)772-95-90 *15026

email: city@hse.ru