Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 50

Advanced Surface Modeling with Loft, Sweep, and Revolve

Recommended resources

Hello! In our last lesson, you learned how to generate a wide variety of parametric curves using mathematical functions. We've laid the groundwork; now it's time to build upon it.

This lesson will elevate your skills from one dimension (curves) to two (surfaces). We will explore three fundamental techniques for creating complex surfaces from the very profile curves you now know how to generate: Loft, Sweep, and Revolve. Mastering these methods is a cornerstone of parametric modeling, allowing you to translate linear profiles into rich, three-dimensional architectural forms. By the end of this session, you will be able to construct surfaces using each of these techniques in Grasshopper.

From Curves to Parametric Surfaces

Before diving into the tools, let's establish the core concept. In the previous lesson, a curve was defined by a single parameter, , creating a function . A surface extends this idea by using two parameters, commonly denoted as and . A point on a parametric surface is thus defined by a function .

You can think of a parametric surface as an organized grid of curves. The parameter might trace a path along one set of curves, while traces a path across them.

These diagrams illustrate how surfaces can be generated from profile curves. In (a), a surface Q(u,w) is formed between two profile curves P(u) and R(u). In (b), a grid of curves defines a surface patch.

In digital design, the most common mathematical representation for these free-form surfaces is the NURBS (Non-Uniform Rational B-Spline) surface. Given your background in mathematics, you may find the underlying principles intriguing. For our purposes, the key takeaway is that NURBS surfaces are highly flexible and are fundamentally defined by a rectangular grid of control points and curves, which aligns perfectly with the coordinate system.

To get a better sense of the properties and terminology of NURBS, you can read the following introductory sections from the article "The Dirty Little Secrets of NURBS".

The Dirty Little Secrets of NURBS - Pilot3D

This article provides an excellent, non-technical overview of what NURBS are and how they work. It will give you the conceptual vocabulary to understand the surfaces you are about to create.

Focus on these key sections: Read the introduction, Surface Modeling, to understand why NURBS are the industry standard. Then, read "What is a NURB?" to get the main idea of control vertices. Finally, review the description of a NURBS surface and its controls in the section starting from "Figure 2". Pay attention to the concept of a "rectangular matrix or grid of vertex points," as this is the mental model we will be working with.

Now, let's see how we can construct these surfaces in Grasshopper.


Method 1: Lofting - Skinning Between Profiles

The Loft operation creates a smooth surface that interpolates between two or more profile curves. Imagine stretching a sheet of fabric over a series of shaped ribs—that's the essence of a loft. This technique is incredibly powerful for creating forms that have changing cross-sections, like a ship's hull or a tapering tower.

The video below provides a comprehensive walkthrough of both the Loft and Sweep components. We will begin with the Loft.

Grasshopper Tutorial 09 | Sweep and Loft

This tutorial from the "Individualized Production in Architecture" channel clearly demonstrates how to use the Loft component and its various options.

Please watch the section on using the Loft component. Pay close attention to these points: Curve Order and Direction: Notice how the initial result is "weird" because one of the curves has a flipped direction. The order and direction of the input curves are critical for a successful loft. Loft Options: The video introduces the Loft Options component. Listen carefully to the explanation of the different Type settings: Normal, Loose, Tight, Straight, and especially Developable. A developable surface is one that can be unrolled into a flat plane without stretching or tearing—a crucial consideration for fabrication with sheet materials.

As you saw, the Loft component (Surface > Freeform > Loft) takes a list of curves and generates a surface through them. The real power lies in the Loft Options, which give you fine-grained control over the resulting geometry's character.


Method 2: Sweeping - Extruding Along a Path

The Sweep operation creates a surface by moving a profile curve (the "section") along a path (the "rail"). This is ideal for forms with a consistent or systematically changing cross-section, such as pipes, handrails, or decorative moldings.

Grasshopper offers two main versions:

  • Sweep1: Uses one rail curve.
  • Sweep2: Uses two rail curves, giving you control over both edges of the resulting surface.

Let's return to the video tutorial to see how these work.

Grasshopper Tutorial 09 | Sweep and Loft

This tutorial also provides a great introduction to the Sweep components.

Watch these two segments: First, watch the introduction to Sweep1 and Sweep2. Note the clear distinction between using one rail versus two. Next, watch the segment on fixing rail directions. This demonstrates a common problem with Sweep2 where rail curves drawn in opposite directions produce an error, and shows how to fix it with the Flip Curve component.

A Critical Detail for Sweep1

While Sweep2 is relatively straightforward once the rail directions are correct, Sweep1 has a crucial requirement: the section curve must be positioned correctly relative to the start of the rail curve, typically perpendicular to it. Simply drawing a section curve on the XY plane won't work if your rail is a 3D curve.

The following video demonstrates the standard professional workflow for solving this using the Orient and Perpendicular Frame components.

Grasshopper Tutorial (Sweep1)

This "Rhino Grasshopper" tutorial focuses specifically on the Sweep1 component and provides an excellent, robust workflow.

Please focus on these key steps: Orienting the Section: This is the most important part. Watch how the Perpendicular Frame component is used to create a plane normal to the rail curve, and the Orient component is used to move the section curve from its original location onto this new plane. Reparameterizing the Rail: The video explains why right-clicking the curve input and selecting "Reparameterize" is useful. It changes the curve's domain to be from 0 to 1, making it easy to place the perpendicular frame at the start (0), end (1), or anywhere in between. Automating the Source Point: This segment shows a clever trick. Instead of manually placing a point to define the section's base plane, the Area component is used to find the section's centroid automatically. This makes your definition more robust if you decide to change the section curve later.


Method 3: Revolve - Sweeping in a Circle

A Surface of Revolution (or Revolve) is a special case of a sweep where a profile curve is rotated around a central axis. This is one of the oldest and most common methods for generating form in architecture, seen in everything from classical columns and domes to modern, lathe-turned designs.

The Grasshopper Primer PDF provides a complex definition that culminates in a Revolution operation. We will focus only on that final step.

[PDF] Mode Lab Grasshopper Primer Third Edition - aae 280 fall 2014

This document contains a series of detailed Grasshopper exercises. We will look at the final steps of the "WEAVING DEFINITION" to see the Revolution component in action.

Find the definition on page 110 titled F.4.3.5 WEAVING DEFINITION. You don't need to build the whole definition. Instead, focus on the final steps from page 114: Read steps 45 through 49. The Revolution component (Surface > Freeform > Revolution) takes a Profile Curve (P) and an Axis (A). In this example, the NURBS curves generated in the previous step serve as the profiles, and the original straight lines are used as the axes of revolution. This creates a series of woven, vase-like surfaces.

This Grasshopper definition demonstrates a practical application. A profile curve is arrayed and then used in a `Loft`. A separate curve is used with a `Revolve` component to create the central, solid-looking part of the geometry.

Summary and Next Steps

In this lesson, you've moved from lines to surfaces by mastering three fundamental generative techniques. You now have the tools to create a vast array of complex architectural geometries from simple profile curves.

Key Takeaways:

  • Parametric surfaces are defined by two parameters, and , and are often represented as NURBS surfaces in CAD software.
  • Lofting creates a surface by skinning a series of ordered profile curves. It's ideal for forms with varying cross-sections.
  • Sweeping creates a surface by moving a section curve along one (Sweep1) or two (Sweep2) rail curves. It excels at creating forms with high levels of path and profile control.
  • Revolving is a specialized sweep that rotates a profile curve around an axis, perfect for creating axially symmetric objects.
  • For all these techniques, careful management of your input curves—their order, direction, and orientation—is essential for predictable and clean results.

In our last lesson, you created curves from mathematical functions. Now you can use those very curves as inputs for Lofts, Sweeps, and Revolutions. For example, you could loft between three sine waves of different amplitudes and frequencies to create a complex, undulating canopy.

With the ability to generate complex surfaces, our next step will be to control their features in more nuanced ways. In the next lesson, we will explore how to define and remap numerical domains. This will unlock powerful techniques like using attractor points to modulate the geometry of your surfaces, adding another layer of parametric control to your designs.