LunchBox G2 (alpha) - Plugin thread for Grasshopper2

With Grasshopper2 in alpha, I thought I’d begin exploring the process of porting over some LunchBox tools. It is still very early days and I expect that there will be many changes to the the G2 SDK as it develops. Look for updates on this thread to track progress and get new download links.

LunchBoxG2

The current focus is to migrate over essential LunchBox tools:

  • Data: Create and parse data structures including datasets and CSV.
  • Generate: Novel tessellation and fractal algorithms.
  • Mass: Create building floor/volume arrays constrained by area and floor boundary shapes.
  • Mesh: Utilities for mesh manipulation
  • Panel: Tesselate surfaces with panel divisions including triangle, quadrangles, and hexagons.
  • Solid: Platonic solid shapes.
  • Structure: Tesselate surfaces with line-based divisions.
  • Surface: Mathematical surfaces including Klein and Mobius.
  • Utility: A handful of utilities including Brep Shell, Brep Unroll, and Arc divide.
  • Vector: Vector based algorithms and attractors.
  • Workflow: Excel read/write, and Text read/write (with toggles).

To install:

  • Download, unblock, and unzip LunchBox G2 from the links below.
  • Install Grasshopper2 through the Rhino 8 or 9 WIP package manager.
  • Run the G2PluginViewer command in Rhino
  • Choose “+ Install a Plugin Manually”
  • Navigate and select the LunchBoxG2.rhp included in the above link
  • Run G2 to open Grasshopper2. Look for the LunchBox menu tab!

Alpha downloads…

Source code…

14 Likes

A new alpha build of LunchBox G2 is available. This release focused on porting some data formatting tools to Grasshopper2 along with creating a new Excel writer to creating multi-table workbooks.

Download LunchBoxG2 v0.0.2 it here…

  • Format CSV
  • Parse CSV
  • Create DataTable
  • Create DataSet
  • Write DataSet To Excel - Author a multi-table Excel workbook using a DataSet


3 Likes

Why doesn’t LunchBox have its own discourse category? Other plugins have one… Ivy, Kangaroo, Paneling Tools, Karamba3D just to name a few

Good idea. I’ll work with the McNeel crew to have them set one up.

2 Likes

@archinate1 @martinsiegrist it has been done :slightly_smiling_face:

4 Likes

If you have been wanting to kick around some mathematically-defined geometric forms in Grasshopper2, this update is for you.

Download LunchBoxG2 v0.0.3 here…

This alpha version of LunchBoxG2 includes components for:

  • Enneper
  • Helicoid
  • Klein
  • Mobius
  • Paraboloid
  • Plucker Conoid
  • Supershape 3D
  • Torus


2 Likes

In case you have a need for some Platonic solids (regular polyhedra), LunchBox G2 has the goods.

Download LunchBox G2 alpha v0.0.4 here

  • Platonic Cube
  • Platonic Dodecahedron
  • Platonic Icosahedron
  • Platonic Octahedron
  • Platonic Tetrahedron

4 Likes

Small update: I’ve ported over a few additional subdivision tools…

FractalDivision

2 Likes

One of my favorites: The space truss structure component. Create a wireframe structure spanning two surfaces….

Two components added here:

  • Space Truss by Offset: Creates a space truss using a surface and an offset value.
  • Space Truss by Two Surfaces: Creates a space truss using two surfaces.

SpaceTruss

3 Likes

A few mesh components are in this new build…

Download LunchBox G2 alpha v0.0.7

  • Mesh Edge by Angle
  • Mesh Extrude
  • Mesh Faces to Nurbs

MeshEdgeByAngle

5 Likes

Added some classic ‘attractor’ algorithms, panel frame improvements, and I filled in for a missing surface area output with a centroid.

I took these updates for a spin with my 3D printer…

2 Likes

Download LunchBoxG2 Alpha v0.0.9 here

New update with new utilities…

  • Panel projection
  • Analyze panel planarity
  • Quad to triangles (divides a quad into two triangles)
  • Reverse surface UV

A few gap fillers (we can prob expect future G2 to have these… if they are there, I couldn’t find them!)

  • Reparametrize Surface (give a surface a new U and V interval)
  • Reparametrize Curve (give a curve a new interval)
  • Brep area with centroid (the G2 standard does not have a centroid point like G1)
  • Deconstruct Surface Locus (returns numeric values for UV propreties)
  • Deconstruct Curve Locus (returns numeric value for point at a curve parameter)

LunchBoxG2-PanelProjection

2 Likes

And what do you use to draw icons for your plugin?

Grasshopper2 has a vector-based Icon editor so you can draw them all in Rhino. You can get to it by running the “G2IconSetup” command.

It’s still an incomplete feature but it’s possible to work out some good icon graphics.

6 Likes

New update available: This includes some more tools for generating panel geometry:

Download LunchBoxG2 Alpha 0.0.0.10

  • Panel Pillow (Makes some puffy panels)
  • Panel Pyramid (Makes some spiky panels)

LunchBoxG2-PanelBubble

LunchBoxG2-PanelPyramid

2 Likes

We had a great set of workshops at AEC Tech this past week in New York! As part of the Plugin Workshop, I announced that LunchBox for Grasshopper2 will be an open source project going forward! In these early days of G2 adoption, I hope the work here can help others get oriented with creating their own tools plugins.

There is still plenty of work to be done and we must all remember that G2 is still in ‘alpha’… which means change is part of the game.

The original LunchBox plugin never quite made it to having it’s source code published (apart from the machine learning tools). This is because LunchBox had been put together over a lengthy timeline… starting when I was first learning to code. LunchBox G2 has given me a chance to revisit all of my old code, clean things up, refactor, and reorganize. I feel comfortable putting this code out in the wild now :slight_smile:

I hope it’s useful. In the meantime, expect more updates to the plugin very soon!

-Nate

1 Like

Another artifact from the AEC Tech G2 workshops: a LunchBox definition sample with some classic surface tessellation development… (ghz is attached below)

Parametric Surface-AttractorColorMeta.ghz (837.1 KB)