Skip to main content

Step 5: Add Context Geometry

Context geometry refers to static, unchanging 3D elements in your design, such as:

  • Site context (terrain, streets, buildings)
  • Reference buildings or structures
  • Background environment elements
  • Fixed infrastructure

Unlike parametric geometry that changes with user inputs, context geometry remains constant across all design variations and versions.


How to Add Context Geometry

Here is a very simple context geometry that we are going to add to our simple example.

📥 Download Simple Context .3dm

Step 1: Export Context from Rhino 8

  1. Open your Rhino model with the context geometry
  2. Select all objects you want to use as context
  3. Go to File > Export Selected
  4. Choose GLB (Binary glTF) as the file format
  5. Configure export settings:
    • Ensure proper material and color settings
    • Adjust mesh quality as needed
    • Keep file size manageable (under 50 MB recommended)

alt text

alt text

  1. Save the GLB file
Rhino 8 Required

GLB export is available in Rhino 8. If you're using an earlier version, consider exporting to OBJ and converting to GLB using online tools.

Step 2: Upload Context to InForm

  1. Navigate to your design in InForm
  2. Go to the Context or Settings section

alt text

  1. Click Upload Context Geometry
  2. Select your exported GLB file
  3. Wait for the upload to complete

alt text

The context geometry will now appear in the viewer alongside your parametric geometry, but it won't be recalculated with each design variation.


Optimise your geometry for export.

  1. Convert geometry to meshes using Mesh command. If you have blocks/polysurfaces, explode and convert them to meshes.
  2. Use the MeshRepair function in Rhino to check if the meshes are correct.
  3. Join as many meshes together as possible.
  4. Use Reduce Mesh to reduce the amount of faces.

Why Upload Context Separately?

Including static geometry in your Grasshopper script has several performance drawbacks:

Slower Computations: Context geometry is processed every time the script runs
Increased File Size: Larger Grasshopper files take longer to upload and process
Higher Data Transfer: Context is sent with every design variant
Slower Web Viewer: More data must be loaded for each variation

Performance Benefits of Separate Upload

Faster Computation: Context geometry is excluded from script processing
Smaller Script Size: Grasshopper file remains lightweight
Reduced Data Transfer: Context is sent once, not with every variant

Next Step

Learn how you can customize the user interface.

Next: Override Layout →


← Previous: Adding an Action | Back to Overview