. a collection of codes & grammars for Grasshopper.
Hitomezashi Pattern
![](https://www.co-de-it.com/wordpress/wp-content/uploads/2020/04/Hitomezashi_pattern_Co-de-iT_1.0007-290x98.png)
The definition creates a specific Hitomezashi pattern.
Outputs are available in Nurbs and a Mesh format.
Hitomezashi_pattern_Co-de-iT_1.0007.zip
Mesh Color by sudo-Curvature
![](https://www.co-de-it.com/wordpress/wp-content/uploads/2019/10/Mesh_Color_by_Curvature_thumb-290x98.png)
The definition applies a vertex color based on the average or upper value of the angles between adjacent faces.
Mesh_Color_by_Curvature_Co-de-iT_1.0007.zip
3D Hilbert curve
![](https://www.co-de-it.com/wordpress/wp-content/uploads/2019/04/3D_Hilbert_Curve_thumb-290x98.png)
This definition generates a 3D Hilbert curve (a continuous fractal space-filling curve).
3D_Hilbert_Curve_Co-de-iT_1.0007.zip
nGon mesh tessellation
![](https://www.co-de-it.com/wordpress/wp-content/uploads/2018/10/nGon_tessellation_thumb.png)
Builds a nGon mesh tessellation on a closed surface.
nGon_tessellation_Co-de-iT_1.0007.zip
Curves Sorter
![](https://www.co-de-it.com/wordpress/wp-content/uploads/2018/10/Curves_Sorter_thumb-e1540111123862.png)
Sorts a list of curves by closest curve and (eventually flipping their direction) to optimize toolpath length.
Curves_Sorter_Co-de-iT_1.0007.zip
Clusterizer
![](https://www.co-de-it.com/wordpress/wp-content/uploads/2009/12/Clusterizer_thumb.jpg)
Groups indexes of connected points into separate clusters. Sandbox & Anemone plugins required.
Clusterizer_Co-de-iT_0.9.0076.zip
Spirograph
![](https://www.co-de-it.com/wordpress/wp-content/uploads/2009/12/Spirograph_thumb.jpg)
This definition simulates a spirograph tool.
Spirograph_Co-de-iT_0.9.0076.zip
3D Differential mesh relaxation
![](https://www.co-de-it.com/wordpress/wp-content/uploads/2009/12/3D_Differential_mesh_relaxation_thumb.jpg)
This definition explores the 3D relaxation of a mesh affected by an image gradient.
3D_Differential_mesh_relaxation_Co-de-iT_0.9.0076.zip
2.5D Differential mesh relaxation
![](https://www.co-de-it.com/wordpress/wp-content/uploads/2009/12/2.5D_Differential_mesh_relaxation_thumb.gif)
This definition explores the 2.5D relaxation of a mesh by a system of attractor points forces.
2.5D_Differential_mesh_relaxation_Co-de-iT_0.9.0076.zip
2D Differential mesh relaxation
![](https://www.co-de-it.com/wordpress/wp-content/uploads/2009/12/2D_Differential_mesh_relaxation_thumb.png)
This definition explores the 2D relaxation of a mesh by a system of attractor points forces.
2D_Differential_mesh_relaxation_Co-de-iT_0.9.0076.zip
Vorospace
![](https://www.co-de-it.com/wordpress/wp-content/uploads/2009/12/Vorospace_thumb.png)
This definition creates a mesh model of all the connections between the centers of the 3D Voronoi cells and the adjacent cells.
Vorospace_Co-de-iT_0.9.0076.zip
3D Hexagonal Weaving
![](https://www.co-de-it.com/wordpress/wp-content/uploads/2009/12/3D_Hexagonal_Weaving_thumb-e1407054244205.png)
This definition explores the weaving of a hexagonal grid generating 3 different interwoven frames.
3D_Hexagonal_Weaving_Co-de-iT_0.9.0075.zip
Vectors field over HexaMesh
![](https://www.co-de-it.com/wordpress/wp-content/uploads/2009/12/Vectors-field-over-HexaMesh_thumb.png)
This definition explores vector field-driven deformations and colouring over a hexagonal grid, generating a mesh.
Vectors field over HexaMesh_Co-de-iT_0.9.0075.zip
Erwin Hauer’s Box Morph
![](https://www.co-de-it.com/wordpress/wp-content/uploads/2009/12/Erwin-Hauers-Box-Morph.png)
This definition explores the Box Morph technique to get Erwin Hauer’s continuous screens using meshes.
Erwin Hauer’s Box Morph_Co-de-iT_0.9.0066
Math surfaces
![](https://www.co-de-it.com/wordpress/wp-content/uploads/2009/12/Math-surfaces_thumb.png)
This definition provides several math surfaces (nurbs and mesh) based on k3surf formulas.
Math surfaces_Co-de-iT_GH090066.zip
GH to SVG
![](https://www.co-de-it.com/wordpress/wp-content/uploads/2009/12/GH-to-SVG_thumb.png)
A series of Clusters/Components in order to export and visualize directly a SVG file.
you can download the file from the gitHub repo.
ASCII art generator
![](https://www.co-de-it.com/wordpress/wp-content/uploads/2009/12/ASCII_art_thumb.jpg)
This definition uses any image to create an ASCII art picture.
ASCII art generator_090014.zip
Gradient Descent Algorithm
![](https://www.co-de-it.com/wordpress/wp-content/photos/code/gradient%20descent%20algorithm_codeit_thumb.jpg)
Gradient Descent algorithm on a surface (generated by an image sampler logic) in two variants normal and rotated. Original VBnet code by Woo Jae Sung.
Gradient Descent Algorithm.rar
GH to Maya
![](https://www.co-de-it.com/wp-content/uploads/2009/12/GHtoMaya_thumb.jpg)
GH definition that preserves mesh vertices colors and renders them in Mental Ray in Maya. Included are: GH def (v 0.9.0014), Rhino file, .fbx mesh sample, .mb file with finished result.
GH to Maya package
GH to Blender
![](https://www.co-de-it.com/wordpress/wp-content/photos/code/GHtoBlender_thumb.jpg)
GH definition that preserves mesh vertices colors and renders them in Blender with Cycles. Included are: GH def (v 0.9.0014), Rhino file, VRML mesh sample, .blend file with finished result.
GH to Blender package
Voxelizator
![](https://www.co-de-it.com/wordpress/wp-content/uploads/2009/12/Voxelizator_thumb.png)
A definition that voxelizes a surface or polysurface.
Voxelizator_Co-de-iT_GH080066.zip
Ribs Structure
![](https://www.co-de-it.com/wordpress/wp-content/photos/code/thumbRibsStucture.jpg)
This definition creates a Ribs structure from a given Nurbs surface, unrolling all pieces.
RibsStucture_Co-de-iT_GH080066
Strip Morphologies
![](https://www.co-de-it.com/wordpress/wp-content/uploads/2009/12/Strip_morphologies_thumb.png)
Fabrication of single-curvature striped surfaces. Based on the Strip Morphologies technique originally developed by MODELAB
Strip morphologies_Co-de-iT_GH080066
Seamless Pattern
![](https://www.co-de-it.com/wordpress/wp-content/uploads/2009/12/Seamless-pattern_crop_thumb1.jpg)
A simple GH definition that mimics the Escher patterns process.
Seamless pattern_Co-de-iT_GH080066.zip
DiY Architectural Dialogue Machine
![](https://www.co-de-it.com/wordpress/wp-content/uploads/2011/05/DiY-Arch-Dialogue-machine.gif)
Inspired by this post – the GH def sorts random strings from several lists of data and works as an architectural dialogue machine.
DiY Arch Dialogue.zip
Blender2GH
![](https://www.co-de-it.com/wordpress/wp-content/uploads/2011/05/Blender2GH_thumb.png)
Import a Blender3D geometry in GH using the .PLY file format. Package includes: .blend file, .PLY file, GH def, pdf tutorial.
Blender2GH_package.zip
Hexachaos
![](https://www.co-de-it.com/wordpress/wp-content/uploads/2011/05/Hexachaos_crop_thumb.jpg)
Random hexagonal based pattern generator.
Hexachaos_Co-de-iT_GH080010.zip
Pie chart
![](https://www.co-de-it.com/wordpress/wp-content/photos/code/pie%20chart_crop_thumb.jpg)
Draws a pie chart from a list of values.
Pie chart_Co-de-iT_GH06059.zip
Sudo-taxis
![](https://www.co-de-it.com/wordpress/wp-content/photos/code/phyllotaxis_Co-de-iT_GH06057_thumb.jpg)
A Sudo-Phyllotaxis 2D pattern, using the formula: x= cos(i), y=sin(i)
sudo-phyllotaxis_Co-de-iT_GH06057.rar
Sudo-taxis growth
![](https://www.co-de-it.com/wordpress/wp-content/photos/code/phyllotaxis%20growth_Co-de-iT_GH06057_thumb.jpg)
Sudo-Phyllotaxis variation using the formula: x= cos(i), y=sin(i), z=i.
sudo-phyllotaxis growth_Co-de-iT_GH06057.rar
Attractors vector deformation
![](https://www.co-de-it.com/wordpress/wp-content/photos/code/attractors%20vector%20deformation_Co-de-iT_GH0657_thumb.jpg)
Attractor points-based deformation (shrink-expand) on a hexagonal grid.
attractors vector deformation_Co-de-iT_GH0657.rar
Hexagonal Grid Field
![](https://www.co-de-it.com/wordpress/wp-content/photos/code/Hexagonal%20field_crop_thumb.jpg)
Magnetic field applied to a hexagonal grid ruled by 4 points that can be switched (attractors or repulsors).
Hexagonal field_Co-de-iT_GH06019.zip
Image Field
![](https://www.co-de-it.com/wordpress/wp-content/photos/code/IMAGE%20FIELD04_Co-de-iT_GH06057_thumb.jpg)
Image-based geometric parameter control example.
IMAGE FIELD_Co-de-iT_GH06057.rar
Curvature analysis pattern
![](https://www.co-de-it.com/wordpress/wp-content/photos/code/curvature%20analysis%20pattern_Co-de-iT_GH06057_thumb.jpg)
Subdivides a surface into quadrangular panels, with curvature-dependent holes.
curvature analysis pattern_Co-de-iT_GH06057.rar
Uneven Subdivision
![](https://www.co-de-it.com//wordpress/wp-content/photos/code/Uneven%20subdivision_crop_thumb.jpg)
Uneven subdivision of a NURBS surface, controlled by random intervals.
Uneven Subdivision_Co-de-iT_GH08004.zip
Complete Diagrid
![](https://www.co-de-it.com/wordpress/wp-content/photos/code/Complete%20Diagrid_thumb.jpg)
Diagrid definition covering the whole surface, up to the edges.
Complete Diagrid_Co-de-iT_GH06059.zip
Quad2Diagrid
![](https://www.co-de-it.com/wordpress/wp-content/photos/code/Quad%202%20diagrid_crop_thumb.jpg)
Tessellate a surface and smoothly transform the tessellation from a quadrangular to a diagrid pattern.
Quad 2 diagrid_Co-de-iT_GH06019.zip
Tatami-Cairo-Diagrid
![](https://www.co-de-it.com/wordpress/wp-content/photos/code/TCD%2001_crop_thumb.jpg)
This definition allows you to tessellate a surface going smoothly from tatami tessellation to diagrid through Cairo tessellation.
T-C-D_Co-de-iT_GH06019.zip