Catenary Mesh Roof



Author:

Categories: Tutorials


Catenary mesh shaped roof

Karina Szymla

Cad 4
Summer semester  2024/2025

Description of the Project

The goal of my project was to use grasshopper to 3d model a roof to my previous project that I wasn’t able to do in any other program. The roof has to bend both by his longer sides and shorter following the catenary curve.

The Script

  1. Create a rectangle using Rectangle component
  2. Adjust the size using component Construct domain and Sliders

3. Now to achieve wanted shape we will need to merge three things:
mesh, force and anchors

    1. The mesh
      Add the Mesh Plane component to the Rectangle output, then connect Mesh with Edge Lengths component and add that as the first input in Merge

    2. The force
      Add Deconstruct Plane and connect it to Mesh Plane, then use component Load to add the force. Connect Vertices with Point. After that we need to describe what way and how strong should be the force, for that use Unit Z component and a slider. Then connect Load to second input in Merge.

    3. The anchors
      Add Explode component and connect it to Rectangle, after that use Shift List and use Invert on the Wrap output. Thanks to that we get only the four corner points we want to use as anchors. Then connect it to Anchor component and finally plug in the Anchor to the third input in Merge.

    4. Flatten down the merged Result.

    5. Add Bouncy Solver component from Kangaroo plug-in, connect it with merged Result.

    6. To be able to reset our bouncy solver, add Button and connect it to Reset.

    7. To be able to turn on/off the component use Boolean Toggle and connect it to On.

      8. For the final thing use Construct Mesh, connect it to Faces in Deconstruct Mesh and to V as a List in the Bouncy Solver component.

      9. Now you can also edit your final shape, for example the colour using Colour Slice connected to the Colour output.

      10. Since the desired roof consists of two of such shaped, copy the whole script and adjust its placement on the sliders connected to Rectangle. Done the roof is ready!

        11. Now you can also edit your final shape, for example the colour using Colour Slice connected to the Colour output.