Skip to main content

Welcome to a Grasp lesson

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

Lesson 39

Grasshopper Fundamentals: Geometry Basics

Recommended resources

Welcome to the next step in your journey with Grasshopper. In our last lesson, we focused on setting up the controls for our parametric models, using components like number sliders to create dynamic inputs. Now that we know how to provide instructions, it's time to build the fundamental geometric entities that will follow those instructions.

This lesson addresses the core building blocks of 3D space in Grasshopper. We will explore how to create and manipulate points, vectors, and planes. Your background in mathematics and physics provides a strong foundation for these concepts, and today we will bridge that theoretical knowledge with its practical application in a computational design environment. Mastering these elements is crucial, as they form the scaffold upon which all complex curves and surfaces are built in parametric architecture.

From Location to Direction: Points and Vectors

In geometry, a point is the most fundamental element, representing a specific location in 3D space. As we saw in the previous lesson, we can create a point using the Construct Point component, providing it with X, Y, and Z coordinates.

A vector, however, is a different concept. While it is also represented by three numbers, it does not define a location. Instead, it defines a direction and a magnitude (or length). This distinction is vital in parametric design.

The following video from the ParametricCamp channel provides an excellent conceptual overview of what vectors are and how they differ from points.

6.1 Vectors - Intro to Parametric Modeling

This video introduces the concept of vectors and their relationship to points in a computational context.

First, watch the introductory segment What are vectors to refresh the core idea: vectors represent orientation, direction, and magnitude, but not location. Then, jump to a crucial segment explaining the relationship between points and vectors, from another super interesting property. The key takeaway here is that adding a vector to a point results in a new, translated point. This is the mathematical basis for all 'Move' operations in 3D modeling.

This operation, , is perhaps the most fundamental action in computational geometry. It's how we transform and manipulate objects in space algorithmically.

Creating and Visualizing Vectors in Grasshopper

Grasshopper provides several ways to create vectors, found under the Vector > Vector tab. Let's look at the most common ones.

  • Vector XYZ: This component is the direct counterpart to the mathematical notation . You provide three numbers representing the vector's components.
  • Unit X/Y/Z: These components provide ready-made vectors of length 1 pointing along the primary world axes. They are useful for establishing clear directional constants.
  • Vector 2Pt: This component calculates the vector between a start point (A) and an end point (B). Mathematically, it performs the subtraction .

Because vectors have no inherent location, you cannot see them by default. To visualize a vector, you must provide an "anchor" point from which it should be drawn. The Vector Display component (under Display > Vector) is used for this. It requires two inputs: the vector (V) and an anchor point (A).

The image below shows a simple definition combining these ideas. A point is constructed at the origin (0,0,0) and a vector is defined by the components (10,10,10). The Vector Display component uses the point as an anchor to draw the vector in the Rhino viewport.

A Grasshopper definition constructing a point at the origin and a vector with components (10, 10, 10). The `Vector Display` component anchors the vector at the point for visualization.

For a practical demonstration of creating and visualizing these vectors in Grasshopper, please review the following video segment.

6.1 Vectors - Intro to Parametric Modeling

This segment shows how to use the core vector creation and display components in Grasshopper.

Watch the portion from Inside of grasshopper. The presenter demonstrates creating unit vectors, constructing a vector from XYZ components, and creating a vector between two points. Pay close attention to how the Vector Display component is used with an anchor point.


From Direction to Orientation: Planes

While points provide location and vectors provide direction, we often need to define a complete orientation in 3D space. For this, we use planes. In Grasshopper, a plane is not an infinite surface; it is a local coordinate system, defined by:

  1. An origin point (its location).
  2. A local X-axis vector.
  3. A local Y-axis vector.

These three elements together define a unique orientation. The component will ensure the X and Y axes are orthogonal (at 90 degrees to each other) and are unit vectors (length of 1). These two vectors implicitly define a Z-axis vector via the cross product, completing the local coordinate system.

This concept is essential because most geometry-generating components in Grasshopper ask for a plane, not just a point, as an input. This allows you to control not only where an object is created, but also how it's oriented.

6.2 Planes - Intro to Parametric Modeling

This video from ParametricCamp introduces the concept of planes as local coordinate systems and shows why they are fundamental to creating oriented geometry.

First, watch the conceptual introduction from environments that I work with to understand what a plane is in Grasshopper. Next, watch the brief demonstration of creating standard planes from planes and other components. Finally, see a practical example of why planes are useful by watching the segment on orienting an ellipse, from Why are planes useful?. This clearly demonstrates how different input planes change the orientation of the resulting geometry.

Creating Custom Planes

While the standard XY, YZ, and XZ planes are useful, you will almost always need to define custom planes for your designs.

  • Construct Plane: This is the most explicit way to create a plane. You provide an origin point and two vectors for the X and Y directions. As the video explains, Grasshopper is smart enough to handle input vectors that are not unit-length or perfectly perpendicular, creating the best-fit valid plane.
  • Plane 3Pt: This is a common and intuitive shortcut. You define a plane using three points: one for the origin, one to define the X-axis direction, and a third to define the plane itself (and thus the Y-axis direction).
A simple Grasshopper definition where a point at (5,5,5) is used as the origin for a default XY plane.

The Power of Planes in Parametric Modeling

The true power of planes becomes apparent when you combine them with collections of points, especially on curves and surfaces. This allows you to place and orient geometry in complex arrangements.

  • Planes on a Curve (Perpendicular Frames): You can generate a series of planes along a curve that are perpendicular to it at every point. This is fundamental for operations like sweeping a profile along a rail, as in creating a handrail or a twisting tower.
  • Planes on a Surface (Surface Frames): Similarly, you can generate a grid of planes on a surface, where each plane is aligned with the surface's normal and curvature at that point. This is the key to creating facade panels, responsive skins, and other surface-based components that respect the underlying form.

The final video segments will show you these powerful techniques in action.

6.2 Planes - Intro to Parametric Modeling

These clips demonstrate two of the most powerful applications of planes: orienting geometry along curves and on top of surfaces.

First, watch the segment on creating planes on a curve, from we're not even close. Notice how the lofted form follows the twisting orientation of the perpendicular frames. Next, watch the segment on creating planes on a surface, from applicable to surfaces. This is a critical technique for facade design, showing how cubes can be oriented to follow the surface's curvature.

The ability to create and manipulate these ordered sets of planes is a cornerstone of parametric design, allowing you to build intricate systems where each component is precisely located and oriented in relation to the overall form.


Conclusion

In this lesson, we established the geometric foundation for our parametric models. We have connected the mathematical concepts of points, vectors, and planes to their practical implementation in Grasshopper.

Here are the key takeaways:

  • Points define a location in space.
  • Vectors define a direction and magnitude, but have no fixed location. The operation Point + Vector = New Point is the basis for all geometric translation.
  • Planes define a full local coordinate system (an origin and an orientation) and are the primary input for orienting geometry in Grasshopper.
  • We can create these primitives from their numerical components (e.g., Construct Point, Vector XYZ) or from other geometry (e.g., Vector 2Pt, Plane 3Pt).
  • Advanced components like Perpendicular Frames and Surface Frames allow us to generate ordered sets of planes on curves and surfaces, enabling the creation of complex, rule-based geometric systems.

You are now equipped with the essential tools to define space, direction, and orientation. In our next lesson, we will use these building blocks to construct and deconstruct parametric curves—the fundamental lines that will trace the paths and profiles of our architectural designs.