Transferring image to Grasshopper geometry

  • Intro
  • GH script
  • Conclusion

Information

Primary software used Grasshopper
Course Transferring image to Grasshopper geometry
Primary subject Parametric Modeling
Secondary subject General
Level Advanced
Last updated November 11, 2024
Keywords

Responsible

Teacher
Faculty

Transferring image to Grasshopper geometry 0/2

Transferring image to Grasshopper geometry link copied

Here is an example of how to transfer a simple floorplan into Brep and points on Grasshopper using the brightness values of each pixel. However, this method is a hack specifically for floorplans without text and may not apply to other images.

Result of BREP
Result of BREP

Transferring image to Grasshopper geometry 1/2

GH script link copied

Grid points floorplan
Grid points floorplan

A simple floorplan into BREP and points on Grasshopper involves using the brightness value of each pixel in the image. The values are then projected onto a grid of points based on the image’s dimensions. Delaunay edges are then utilized to extract edges from the points. Applying a constraint makes it possible to extract the edges from the floor plan.

Delaunay edges based on grid points
Delaunay edges based on grid points
Overview of Grasshopper script transferring image to geometry

Transferring image to Grasshopper geometry 2/2

Conclusion link copied

You now learned how to transfer an image to Grasshopper geometry. Here you can find an overview of the script.

Overview of Grasshopper script transferring image to geometry
Overview of Grasshopper script transferring image to geometry

Final exercise file

Here you find the final GH script of the tutorial. 

Download final GH scipt image to geometry
application/zip (ZIP, 27 KB)