designcoding
About Table of Contents Keywords Monthly Archive
Support designcoding!

Folding Experiments: Basics (1)

December 6, 2022 | Algorithms
#folding #grasshopper #kangaroo #tutorial

We will try to create collapsible structures in this new series called Folding Experiments. In this example, we will be using Grasshopper and Kangaroo components to understand the Folding Experiments: Basics first. Like other projects, this is a Parametric Modeling course exercise that usually includes primary Grasshopper usage. In our first example, we will try to fold a mesh object. To be able to fold a surface like origami, we need to define the folding creases and faces.

Folding Experiments: Basics (1) folding, grasshopper
Folding Experiments: Basics (1) Grasshopper definition

The most critical component we will use is the “Hinge”, one of the Kangaroo goal objects. The first two inputs “Fold Start” and “Fold End” show the lines that make up the fold axis. Thus, only flat folds can be made with this component. We create a series of fold axes using two different data lists formed by opposing points. To do so, we must define point objects independent of the mesh surface. Then, these points will stick to the mesh vertices. Therefore, we define these points right above the vertices (using osnap). The other inputs, “Type1” and “Type2”, represent the two points we will move around the axis. The input that determines this rotation angle is “RestAngle”, which is linked this input to a Number slider.
Other target objects we use in the code are “Planarize” and “EdgeLengths”. Because we need to transform the mesh object into foldable, rigid surfaces. The “Show” component ensures that the surfaces of our mesh object are also visible during the folding calculation.

A code is better than a thousand words. You can download and review the example. To keep this “Folding Experiments: Basics”, we didn’t add many sophisticated details. We leave this to your imagination.

Grasshopper definition (GH)Download
Rhinoceros file (3DM)Download

Cite this post

Yazar, T. (2022, December 6). Folding Experiments: Basics (1). designcoding. Retrieved August 24, 2026, from https://www.designcoding.net/folding-experiments-basics-1/

Related Posts

Folding Pattern: Folding Experiments (3)

January 21, 2023

This is the continuation of the physical prototyping project of a folding pattern from 9 years ago. I simulate the folding pattern using the Rhino Grasshopper Kangaroo. As seen in the video, this is possible thanks to the pre-set hinge positions on the Rhino model. Thus, the folding motion can be animated on the screen. You can download and try the Grasshopper code. I often use this code in my ARCH 362 Parametric Modeling course. I think it is possible…

Evolution Door: Folding Experiments (2)

December 25, 2022

Here is the Grasshopper implementation of the famous Evolution Door design by Klemens Torggler. The code I used here is from my course on Parametric Modeling. This Grasshopper algorithm is a good exercise for the basics of Kangaroo. I attached several goal objects to a special mesh object created in Rhinoceros. Kangaroo’s goal objects work as expected to simulate the folding door behavior. I used the goal objects to fix some of the corner points and fix the edge lengths….

Kangaroo 2 Test

April 27, 2015

After several readings, I’ve understood the way of working the new and very interesting feature of Kangaroo 2: “Grab”. Now, we can actually grab the Grasshopper objects from Rhino viewport! Also, on one hand, the new Kangaroo has a very special way of working (not common to us, native Grasshopper users) and on the other hand, it is very very easy to use and understand now. I loved that. Here is the classical truss exercise I’ve made with my students…

Calatrava Door

May 12, 2023

Santiago Calatrava, a celebrated Spanish architect, structural engineer, sculptor, and painter, is renowned worldwide for his groundbreaking and futuristic designs, which frequently fuse architecture with engineering and artistry. Among his many notable works is the door design at Ernsting Warehouse in Coesfeld, Germany, constructed in 1985. I call this Calatrava Door because this design showcases Calatrava’s keen sense of functionality and geometry, with aluminum slats arranged vertically and connected along a curved line using hinges. When you raise the frame,…

Contour-fold Structure

February 1, 2015

Euclidean constructions, when represented computationally, rely on algorithms and mathematical principles to generate geometric shapes and forms. Through precise calculations and logical operations, a computer program can emulate the actions of a compass and straightedge, constructing lines, circles, and polygons with accuracy and efficiency. These digital incarnations of Euclid’s timeless techniques enable the exploration of geometric concepts and the creation of visually captivating representations. This project is interesting because of the Euclidean construction underneath. Initially, I studied this type of…

  • Chapters

    • Algorithms
    • Discourses
    • Fabrications
    • Studios
  • Explore

    • All Keywords
    • Table of Contents
    • Monthly Archive
    • #polyhedra
    • #rhinoceros
    • #parametric-surface
    • #rhino-python
    • #archimedean-solid
    • #kuka-prc
    • #robot
    • #tessellation
    • #relief
    • #3d-printing
    • #terrain
    • #sandblasting
    • #stone
    • #parametric-curve
    • #animation
    • #dual
    • #dodecahedron
    • #icosidodecahedron
    • #truncated
    • #platonic-solid
  • Search

  • Support designcoding!

  • Enjoying designcoding? Support me on Patreon to keep it growing. Thank you!

  • copyright 2026 designcoding.net | about | privacy policy | end user license agreement