background preloader

GH

Facebook Twitter

How to get the most out of your Grasshopper paths (Data.GH_Path) By Ben Silverman: BHSilverman[at]gmail[dot]com When developing custom components for grasshopper it is very helpful to master branch paths and utilize them to their maximum value. Branch paths are great for managing data and allow the user to perform complex geometric operations on very large datasets. However, Branch paths are elevated to awesomeness when you utilize them to add some building information modeling (BIM) to your grasshopper definition.

By controlling the branch paths of your data you can encode information into each item passing through a grasshopper wire from one component to another. This becomes very handy in interoperability tools that connect to building analysis software, where information on material properties becomes paramount. First thing to understand is the terminology. Tree Branches or List of Telephone Numbers? Access the branch by its path index as an Integer: Dim myPathIndex as Integer = 10 myDataTree.Branch(myPathIndex) GRASSHOPPER TUTORIALS. The disContinuum - grasshopper. Grasshopper tools in C# Grasshopper code. . a collection of codes & grammars for Grasshopper, a generative modeling tool for Rhinoceros. 3D Hilbert Curve 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 Starting from a closed surface it builds a nGon mesh tessellation nGon_tessellation_Co-de-iT_1.0007.zip Curves Sorter Starting from a list of curves it takes the first one then it looks for the closest curve and it eventually flips the direction to optimize the toolpath lenght.

grasshopper code

Curves_Sorter_Co-de-iT_1.0007.zip froGH A sparse collection of tools for Grasshopper. See the code, explanation and download here. Clusterizer This definition groups indexes of connected points into separate clusters. Clusterizer_Co-de-iT_0.9.0076.zip Spirograph This definition simulates a spirograph tool. Spirograph_Co-de-iT_0.9.0076.zip 3D Differential mesh relaxation This definition explores the 3D relaxation of a mesh effected by an image gradient.

Vorospace Math surfaces. Www.sawapan.eu/sections/section88_Millipede/files/Millipede_docs_03.pdf. Point Attractor – Grasshopper GHUser Object. Since I am using Attractors frequently in my research, I decided to spend some time on organizing a GH User Object which is basically a grasshopper component that takes an array of points attracted to a certain point and returns the new array of points. If you don’t know what a GH User object is the go here and type GH User). You can easily install this component by placing the file provided into the User Object Directory [ in GH File-> Special Folders -> User Object Folder]. Simple as that and it is ready to use in User tab in the GH toolbar under the category Digital[Sub]stance. The component has five different input values: the attractor, the point array, the field of attraction, the force of attraction and the visualization toggle.

The outputs on the other hand are the vectorfield of the attraction, the resulting point array and the visualization of the attraction range. The code might be containing some bugs so any feedback is deeply appreciated. Rate this: i Rate This Like this: [Sub]Code. This page is set up to host bits of codes and sample algorithms.

[Sub]Code

Those algorithms are free to be explored or even shared with proper recognition to the author.Please let me know if you reached any interesting result using any piece of the code provided. Before downloading anything from Digital [Sub]stance you consent to the following license agreement Digital [Sub]stance by Marios Tsiliakos is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

Based on a work at digitalsubstance.wordpress.com. Permissions beyond the scope of this license may be available at “If you Enjoyed anf found the content of this blog useful please consider donating to keep Digital [Sub]stance up and running.” Grasshopper code. PathMapper_20110315.png (2666×6452) Sawapan : Millipede. Grasshopper tools in C#