Video thumbnail
Line AB
This is a beginner Grasshopper tutorial that looks at a few different ways to use the Line AB component. After a brief introduction to the component, we go through 2 different examples using it to connect division points from curves. The first example resembles a DNA strand. The second, a twisted cylinder, lets us create a hyperboloid. Since the hyperboloid is reminiscent of both the catenoid and Antoni Gaudi, we wander in these directions.

Along the way we notice that Grasshopper’s Catenary component is nearly identical to Line AB but with the addition of a Gravity (Vector) input to pull a line like one of Gaudi’s hanging chains.

Back to Grasshopper Component Glossary
Downloads
Code
Below is the tiny code snippet we used to ensure our 'parameters' never hit or exceed 1 (for the DNA strand at the beginning of the video).
    
// Grasshopper Script Instance
#region Usings
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Drawing;

using Rhino;
using Rhino.Geometry;

using Grasshopper;
using Grasshopper.Kernel;
using Grasshopper.Kernel.Data;
using Grasshopper.Kernel.Types;
#endregion

public class Script_Instance : GH_ScriptInstance
{
    private void RunScript(double x, ref object a)
    {
        double y = x;
        while (y > 1) y -= 1;
        a = y;
    }
}
  
Resources
Burry, M. (2011). Scripting Cultures: Architectural Design and Programming. John Wiley & Sons.