Rhino GH- Extend Surface C# Snippet

Did you ever wonder why there is the extend surface component in Grasshopper missing? Write your own!

There is a Rhino3d Command ExtendSurface for Rhino – But where is the corresponding GH component? It is missing. You can find the extend method inside the RhinoCommon API. Let’s acces it!

Get the example file on github

There is an Extend Curve component for Grasshopper – but no one for surfaces.

Just copy the code in a c# scripting component and create the input paramter: srf, north, east, south, west an isSmoth!

    srf = srf.Extend(IsoStatus.North, north, isSmooth);
    srf = srf.Extend(IsoStatus.East, east, isSmooth);
    srf = srf.Extend(IsoStatus.South, south, isSmooth);
    srf = srf.Extend(IsoStatus.West, west, isSmooth);

    A = srf;

Create the input paramter: srf, north, east, south, west an isSmoth! You can see the type hints below.

The homebrew- Extend Surface Component Beatiful!
name: type hint
srf: Surface
north: double
east: double
south: double
west: double
IsSmooth: bool
type hints
The result – A extended surface – with grasshopper.

If you have Questions on the subject – just write me! leonbrohman(at)gmx.de

Leave a comment