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 […]
Posts categorized under Tools and Languages
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 […]
Yes, interesting topics started to reveal themselves, when I dig into the function curves, especially in the parametric representation. The first interesting application is the “derivative”. Nobody in high school told me that the derivative of a function at a given point gives the slope of the graph at that point. Moreover, it is possible to convert the slope value into an angle in degrees, showing the angle of the […]
This RhinoPython script handles the simple graphs of two-dimensional parametric functions. Therefore, it approximates these functions by drawing parametric curves. It generates many points by solving the functions. The graph of parametric functions is a major topic in most Design Mathematics courses. Because it looks like the building block of many concepts of CAD. However, there is much more to learn before saying that the third degree NURBS is a […]
Jumping into the world of mathematics as a designer seemed to be frightening at the beginning but I opened a new elective course at Bilgi, Design Mathematics. Starting today, I’ll try to log my experiences with the students while we are trying to understand mathematics. The ultimate objective is to find paths that may lead to answering the following question; “what is the relationship between design and math”? Next week, […]
Here is a short series of videos showing the basic usage of Ladybug tools in a canopy design. So, I prepared this for my Parametric Design Systems elective course. Then, I encouraged my students to design their own canopies utilizing a similar Ladybug workflow in Grasshopper. In this first video, I am building a test surface in Grasshopper. I use the Graph Mapper component to derive 3D points and Interpolated […]
Anemone components are still working great, extending the abilities of Grasshopper. Here, I studied a space-filling (or plane-filling) fractal called the Gosper-Peano Curve. You should be very careful about the number of iterations (the N input). Because it can crash your Rhino if you change it to more significant numbers. Also, you should have Anemone components installed in order to run this definition. The generator curve is a special one. […]
Below is a simple tutorial class we studied in Rhino in 2015 and 2016. The exercise is called “A Low-Poly Habitat”. The aim is to create simple polygon models by analyzing the overall geometric topology of an animal body. First-year design students attended the exercise and they are encouraged to create these models using blueprints from www. They used simple commands such as point, line, and surface from 3 or […]