• Residential
  • Commericial
  • Consulting
  • Previous
  • Blog
    • The Firm
    • Contact
    • Find
Menu

BWA

  • Residential
  • Commericial
  • Consulting
  • Previous
  • Blog
  • About
    • The Firm
    • Contact
    • Find

Mesh Patch used to create building masses for a dataset of Bologna, Italy.  This data source was brought to my attention by Francesco here.

Mesh Patch

June 5, 2018

Have building outlines with courtyards?  Looking for a quick way to turn these into building masses?  The new Mesh Patch command in Rhino 6 can help.

A common thing to do when building up a site model in Heron is get building footprints to extrude in order to generate some 3D context.  Once you have the building footprint outlines, there are a few ways to then extrude them based on height data. 

One way would be to create a surface with the Boundary Surfaces component and then extrude them.  This works well but can be slow to generate and then can slow the viewport down considerably as it tries to draw all those nurbs surfaces. 

Another way would be to create a mesh from the outline by piping the outlines into the C#MeshFromPolyline component (included in the Heron Example file) and then "thicken"-ing the mesh based on it's height data with the WeaverBird Thicken component.  This is much faster and works on most building outlines while lightening the load on the viewport.  It doesn't, however, work with courtyard buildings, it just creates a mesh for each outline so that the courtyard outline becomes a mesh instead of a mesh hole. 

This is where the Mesh Patch method comes in.  If the polylines for a courtyard building are in order on their data tree branch so that the outer boundary is first in the list and the holes follow (as is the case when importing shapefiles with Heron), Mesh Patch will create a mesh with the hole(s) for the courtyard(s).  I discovered this Mesh Patch functionality was recently exposed as Mesh.CreatePatch in the Rhino 6 SDK, so I went ahead made a C# component to take advantage of it.  I also accelerated it with multi-threading and posted it below.  I'll probably wrap it up into the next version of Heron.

While testing this Mesh Patch component against the recently multi-threaded Boundary Surfaces component (new in GH 1.0), I've found they are comparable in speed.  This is a great improvement to Boundary Surface! However, if you want to save your viewport, you'll want to mesh the surfaces, which would put Mesh Patch across the finish line first.

Approximately 60,000 building footprints, both with and without courtyards, are being processed with the different methods.  The Thicken component works perfectly, but still throws an error and turns red.

Here is a Grasshopper file containing C# Mesh Patch component:

MeshPatch.GH

In Grasshopper Tags mesh, patch, multi-threaded, building footprints, c#
← Multi-BooleanSlippy Maps in Heron →

About

This blog primarily exhibits how-to and work-in-progress posts related to Heron, a Grasshopper add-in which BWA developed to import GIS data into the Rhino 3d modeling environment.

Support Heron on Patreon

Latest Posts

Featured
Multi-Boolean
Jun 6, 2018
Multi-Boolean
Jun 6, 2018

Making quick work of custom perforating hundreds of panels by multi-threading boolean difference operations in Grasshopper.

Jun 6, 2018
Mesh Patch
Jun 5, 2018
Mesh Patch
Jun 5, 2018

Have building outlines with courtyards?  Looking for a quick way to turn these into building masses?  The new Mesh Patch command in Rhino 6 can help.

Jun 5, 2018
Slippy Maps in Heron
Apr 20, 2018
Slippy Maps in Heron
Apr 20, 2018

Enabling tile-based image delivery for Heron (WIP)

Apr 20, 2018
Google Street View in Heron
Apr 2, 2018
Google Street View in Heron
Apr 2, 2018

Providing more touch points from the real world in Heron (WIP).

Apr 2, 2018

Archive

© Brian Washburn Architect PC