LunchBox G2 - Plug-in Thread for Grasshopper2

With Grasshopper 2 now available in Rhino 9, LunchBox has now been ported over and available in the Rhino 9 package manager. Grasshopper 1 builds are also included in this same package.

LunchBox-Rhino9

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).
  • Machine Learning: LunchBoxML components have been migrated to work in GH2

To install:

  • Open Rhino 9 and lauch “PackageManager”
  • Install LunchBox - (includes Lunchbox for GH1 and GH2 with LunchBoxML)
  • Restart Rhino 9 and open GH1 and GH2 - look for the LunchBox and LunchBoxML tabs

Source code…

OLD Alpha downloads…

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


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.

@archinate1 @martinsiegrist it has been done :slightly_smiling_face:

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


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

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

FractalDivision

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

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

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…

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

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.

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

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

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)

Hi,

are you planning for any updates?

I can’t get to install the plugin, perhaps due to the many updates received by GH2 in the meantime. I also cannot remove it, the remove button has no effect. I am stuck with this Bad plugin info error

I am returning to LunchBox G2 in preparation for a workshop this coming month. I will have some updates published very soon to be compatible with the latest Rhino and G2 BETAs. This will include the Machine Learning components, too.

I am not sure about your uninstallation issue, however. That seems like a question for the McNeel team.

-Nate

A quick update:

The LunchBox G2 and LunchBoxML repos have all been updated to support compiling for the latest Rhino 9 Beta and G2. The MAIN branches have the latest.

Official release builds coming soon…