Skip to main content

Grasshopper: divide a surface into grid and extract the curve boundary of each divided plane

The following tutorial helps you to divide a Plane surface with a UV grid and extract the boundary of each child(divided) planes separately.

Steps:

  1. The desired surface is either created in grasshopper or one of the rhino surfaces is set to a node in grasshopper.
  2. The divide node virtually divides the surface into desired parts & the Isotrim(Subsrf) node creates the divisions on the surface.
  3. Then all the created divided surfaces are collected into one node called surface(srf)
  4. Now its gets complicated,
    -All the collected surfaces are listed into a List node (list item), where the list is grafted within then list node before being processed in the node
  5. This list is now exploded for the edges using Explode node
  6. After the explode node has run, the segments within the node should be grafted.
  7. Then this grafted explode node is to be connected to a Graft node, where the list should be flattened before it runs through graft node.(not sure why grafting it within the explode node doesn't work, but it doesn't)
This gives us the boundary edges of each of the divided surface.


The below images show the application of above mentioned process to create the 3d surface shown below




Comments

Popular Posts

Power Query - "SUBSTITUTE" Function: Remove/Replace multiple values in a column in One Step.

Often times, when you get data from a source, there will most probably be something incorrect that needs to be fixed using an ETL process of Power Query. And most of those transformations would require either Replacing or Removing string's that are not necessary. For example, if you extract any financial data from a source which has multiple currency symbols, there's a chance that the numbers get extracted along with the currency symbols like "$700"/"€700" instead of 700. And these type of cases makes it tough to Transform the Data to our wish as the value will be considered as a text instead of a number. In those type of cases, we would most likely have to create multiple steps to remove the multiple currency symbols from the Column. But thanks to the solution provided by Marcel for one of the questions posted on Stack Overflow, with a little manipulation of the Query language (M), we can replace/Remove multiple strings in one step using the List. ...

Grasshopper: Voronoi Holes on a Planar surface

One of the best natural examples for a Voronoi is the Wing structure of a dragon fly.Grasshopper can help us to build a shape like this in Rhino. Image Courtesy:  The Pond blog Grasshopper by default has a node for Voronoi, we just have to prepare the necessary information to feed into the node. The following example shows how to create a Voronoi shaped holes in a surface Create a planar  Surface  from rhino or grasshopper Randomly Populate the surface with points using the  Populate 2D  Node Feed the surface and the points into the  Voronoi  node and feed a number slider too to adjust eh radius This forms the required Voronoi structure which you can edit the number of points or radius. To create the holes we need to offset each and every inner portion towards its centre using the  Scale  node We can find the centre of each of the inner portions using Area node I'm not sure why but using the offset command su...

Grasshopper: offsetting curves on surface vs scaling curves on surface

Though in Grasshopper Offset and Scale are two different node functions, when it comes to a planar surface, the results of the both are similar. But, I found the " Scale" node to be effective when you want to loft the resultant curve with another. The following images show the different results of a Voronoi structure that yielded when scale and offset nodes are used. When the Offset node is used When Scale is used

Group and Scribble in Grasshopper & Rotating scribble

Grouping & Scribbling in grasshopper can be helpful, especially when your document is filled with hundreds of nodes with wires going all around the screen. Often you might find it difficult to locate the set of nodes you'd like to adjust or alter for your project. So grouping the nodes and annotating the groups would be a nice idea to keep your document organised. Grouping In order to group a set of nodes, you just select them and right click on the screen(not on any of the nodes). You'll find the option to group. You can even name the groups just by right clicking on the group. Although naming the groups would be enough to identify the group. The name bubble of the group will disappear when you zoom too far out. So, the solution to be able to identify the group from a zoomed out fairly far is to add a scribble(with a text height of min 25) in the group. Scribble & Group in Grasshopper Scribble Like the name says, Scribble is just to add some notes f...