We continue the Grasshopper for Beginners (2) series with the data flow programming concept. Control flow diagrams we use in traditional programming languages control the sequence of executed commands. In data flow diagrams, the focus is not on the order of commands but on how the data progresses. In the previous example, it doesn’t matter whether the Circle and Polyline command runs first. As a result, both are prerequisites for […]
Posts categorized under Tools and Languages
This is a new series aimed at beginners in Grasshopper. The design method pioneered by Grasshopper with the way he defines geometric relationships is becoming increasingly popular today. Its interactive interface, which looks like a game or a puzzle at first glance may seem easy and its impressive geometric results are a little dazzling. But when you enter the world of Grasshopper, it is understood that it is not a […]
The first trial of Discrete Fourier Transform in Grasshopper and Python. The technique is used to decompose a function into its frequency components. There are many uses for this technique in physics and engineering. However, the interesting and intuitive part of this mathematical technique is the way of its visualization and the potential mathematical “magic” it produces. I found several examples on the internet of this beautiful visualization such as […]
This is the new paper with Meryem Nurefşan Yabanigül, published at Automation in Construction. It is also Meryem’s master’s thesis. This study is about testing the production of curved surfaces with non-linear robotic hotwire cutting and shape memory alloys. Below is the abstract of it: Robotic arms are being used by construction firms and schools of architecture around the world in design/build research and material studies. Some of these studies […]
In this session, I will add two new methods to the Vector class. I think this will finish the basics for the vectors. In the future, we are going to need several new methods like adding multiple vectors and interpolation. But for now, I think this would be sufficient to further advance into parametric curves and surfaces. These new methods will be based on the dot product method we created […]
This is the continuation of the Vector class we started here, and further advanced here, here, and here. This new Rhino Python implementation is mostly educational and partially a hobby. Before this session, we have developed display, magnitude, add, multiply, reverse, and subtract methods. This time, I am adding the vector normalization and dot product methods and seeing the utilizations of the dot product. Line Explanation 1-26 Already explained in […]
This is the continuation of the previous post on parametric curve equations. In this new version, the script picks a NURBS curve from the user. Then, it analyses the curve’s degree and control points. Unfortunately, only the curves with degree+1 number of control points can be processed. In the future, I hope that I will be able to extend this script to include multi-span curves with more than degree +1 […]
Today, I am going to make only one addition to the Vector class we recently started in Rhino Python. The magnitude of a vector can be easily calculated by assuming that the axes (2 or 3 axes) of it are perpendicular to each other. This gives us an opportunity to assume a right triangle visually, and calculate the magnitude (length) of a vector by using the Pythagorean Theorem. In short, […]
The parametric curve equations are good examples to demonstrate the bridge between computer-aided design and mathematics. Although useless and pointless, it is a good exercise to extract the curve equations. In this Rhino Python code, I present a generalized equation extractor for Rhino. Rhino curves are good examples de Casteljau and Bézier curves. You can see the mathematical underpinnings of Rhino curves with this exercise: This code asks the user […]
The SpaceChase plugin for Grasshopper focuses on initiating dynamic capabilities to Space Syntax theory by introducing the “Dynamic Canvas” model along with real-time editing capabilities in an interactive physics-based environment. SpaceChase is a software development project for “Mekan Dizimi Tasarım Uygulaması” under the ARDEB 1001 program of TÜBİTAK. It is a collaborative research project between İstanbul Technical University, İstanbul Bilgi University, and Tuşpa Design Studio. You can find more information about the project […]
This is the continuation of my new project of re-creating the parametric curve and surface methods of Rhino via Python scripting. If you remember, I started with the building block of vector operations, here and here. Then, I defined vector addition and multiplication, before going deeper into the geometric calculations. In fact, they are using the previously defined addition and multiplication methods. New Vector Operations: Subtraction and Reversing In the […]
Today, I am going to advance the Vector class a bit more. Firstly, I will improve the display method I introduced recently. Then, I will add two new methods which handle the fundamental vector arithmetics in Rhino Python. Improving the Display Method In the previous attempt, I displayed vectors on the origin of the Rhino viewport. The coordinates of the tail of a vector are not stored within the object […]
Let’s continue from the Vector class that started yesterday. Previously, I defined this class to store three numbers (coordinates), named as “components”. I defined a method named __init__ for this. Similarly, I am adding a display method to the Vector class today. Note that I am using Rhino 6 in this code, but it should also work in Rhino 5 or 7. The code Below is the line-by-line explanation of […]
In this new series, I will be using Rhino Python to create some of the fundamental mathematical objects in Rhino. We will learn how to code in Python, and also try to get deeper into the intuition behind some of the fundamental concepts we use every day in Rhino and Grasshopper. The Vector class in Rhino Python is the starting point of this journey. Just like vectors, most of the […]
This is a simple inverse kinematics solution developed by Andreas Aristidou and Joan Lasenby in 2011. They call it Forwards and Backwards Reaching Inverse Kinematics (FABRIK in short). It was quite interesting the learn this technique because it is a fast and accurate approximation of a kinematic chain. There are very interesting potentials of this technique in terms of architectural simulations. I tried to develop a Rhino Python script in […]
I like to deal with possible small computational geometry problems. These fun games are taking 2-3 hours. In addition, these are also memorable exercises. I was reviewing the Anemone plugin last week. I noticed that the Golden Ratio in Grasshopper was not geometrically generated before. Some of the greatest mathematical minds of all ages, from Pythagoras and Euclid in ancient Greece, through the medieval Italian mathematician Leonardo of Pisa and the Renaissance astronomer Johannes Kepler, to present-day scientific […]
Here is a design exercise I’ve been giving to students. It aims to familiarize students with the concept of dataflow diagrams used in Grasshopper. Dataflow is a different concept than conventional computer programming. Here is a good comparison between control flow and dataflow languages. In most educational settings (such as courses and workshops) we concentrate on the fundamental issue of dataflow management via design projects. This requires us to think […]
I realized this method of constructing basis splines from given control points while searching for a way to teach students about basis splines. I couldn’t find an easy and visual method to create clamped basis splines by connecting simple cubic Bézier spans. It is a tough job and requires lots of complex equations. However, I suddenly realized that there is a special way of doing that. So I decided to […]
Below is the Python code you can run in Rhino, that draws a cubic Bézier curve (degree 3). As you can see, the Rhino Python code is very slow and inefficient because we calculate every point with lots of computations. Instead, we can use the spline formulae to make this quicker but I wanted to show that the mathematical construction is parallel to the geometric one. This is a nested […]
In this short study, I generated Rumi Improvizations. The rumi motif, prevalent in traditional Turkish decorative arts like tilings, window lattices, and fabrics, features a round shape with a comma-like body. Despite resembling stylized leaves, rumis have zoomorphic origins. Rumi compositions depicted stylized animal figures, including birds, lions, deer, fish, and mythical creatures like dragons and Simurg. They symbolized strength, fertility, and the eternal struggle between good and evil. The […]