h hopperCode

Grasshopper Cookbook

Repeatable recipe cards for Grasshopper patterns — rectangle surface, UV subdivision, edges, loft, extrude, pipe/sweep, dispatch, populate points, projection, bake. Use when the user asks to build these workflows.

Role

Pattern library — each recipe is a self-contained build card (components, wiring, zone map, next steps). Load one recipe file per task.

How to use

  1. Match the user’s goal to a recipe below.
  2. Load that recipe file.
  3. Layout and placement → gh-modeling-expert (tiers, gaps, read-once, preview).
  4. Place all components → gh_get_canvas once → wire everything.
  5. Follow the recipe’s Next Steps to chain further recipes.

QA / benchmark prompts (humans): docs/gh-cookbook-benchmarks.md

Recipes

#RecipeSummary
0Rectangle SurfacePlanar rectangle via plane + U/V domain
1Subdivide SurfaceU×V grid of subsurface patches
2Extract EdgesEdge curves by type (outer vs interior)
3Loft CurvesLofted surface through 2+ profiles
4ExtrudeLinear extrusion along a vector
5Pipe / SweepPipe radius or custom sweep section
6Dispatch PatternA/B split with boolean pattern
7Populate PointsGrid or random points on surface
8Project PointsRay-cast points onto geometry
9Bake GeometryBake to Rhino doc on a named/colored layer via Model Object + Model Layer

New recipes

Authoring checklist → reference/GUIDELINES.md (human maintainers).

mds/skills/gh-cookbook/SKILL.md / View source on GitHub ↗