Skip to main content

A Multi-formalism Shape Grammar Interpreter

  • Conference paper
  • First Online:
Computer-Aided Architectural Design. Design Imperatives: The Future is Now (CAAD Futures 2021)

Abstract

A shape grammar is a formal rewriting system for producing languages of shapes. While initially defined to operate over line segments and labeled points, the theory of shape grammars has numerously been extended to include other spatial and non-spatial entities, including, planar segments and volumes, some types of curves, weights, colors and descriptions. Over the years, also a number of shape grammar interpreters have been developed, implementations that support the specification and application of shape rules. However, each of these implementations has adhered to a single shape grammar formalism, even if the exact formalism may differ from one implementation to another. This paper reports on the development and application of a shape grammar interpreter supporting multiple shape grammar formalisms. This is achieved in two ways, first, by supporting a variety of representational structures as compositions of basic data types, and second, by providing two alternative matching mechanisms for spatial elements, a non-parametric and a parametric-associative mechanism. Together, this provides for a flexible and extensible interpreter for the specification and application of shape rules, which has been implemented in the Python programming language and is accessible from Rhino and Grasshopper.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. Stiny, G., Gips, J.: Shape grammars and the generative specification of painting and sculpture. Inf. Process. 71, 1460–1465 (1972)

    Google Scholar 

  2. Stiny, G.: Introduction to shape and shape grammars. Environ. Plann. B. Plann. Des. 7, 343–351 (1980)

    Article  Google Scholar 

  3. Stouffs, R.: The algebra of shapes. Ph.D. thesis. Department of Architecture, Carnegie Mellon University, Pittsburgh, PA (1994)

    Google Scholar 

  4. Jowers, Y., Earl, C.: The construction of curved shapes. Environ. Plann. B. Plann. Des. 37, 42–58 (2010)

    Article  Google Scholar 

  5. Stiny, G.: Weights. Environ. Plann. B Plann. Des. 19(4), 413–430 (1992)

    Article  Google Scholar 

  6. Knight, T.W.: Color grammars: designing with lines and colors. Environ. Plann. B. Plann. Des. 16(4), 417–449 (1989)

    Article  Google Scholar 

  7. Knight, T.W.: Color grammars: the representation of form and color in designs. Leonardo 26(2), 117–124 (1993)

    Article  Google Scholar 

  8. Stiny, G.: A note on the description of designs. Environ. Plann. B. Plann. Des. 8(3), 257–267 (1981)

    Article  Google Scholar 

  9. Wortmann, T., Stouffs, R.: Algorithmic complexity of shape grammar implementation. Artif. Intell. Eng. Des. Anal. Manuf. 32(2), 138–146 (2018)

    Article  Google Scholar 

  10. Stiny, G., Mitchell, W.J.: The Palladian grammar. Environ. Plann. B. Plann. Des. 5(1), 5–18 (1978)

    Article  Google Scholar 

  11. Stiny, G.: Ice-ray: a note on the generation of Chinese lattice designs. Environ. Plann. B. Plann. Des. 4(1), 89–98 (1977)

    Article  Google Scholar 

  12. Wortmann, T.: Representing shapes as graphs. Master’s thesis. Department of Architecture, Massachusetts Institute of Technology, Cambridge, MA (2013)

    Google Scholar 

  13. Grasl, T., Economou, A.: From topologies to shapes: parametric shape grammars implemented by graphs. Environ. Plann. B. Plann. Des. 40(5), 905–922 (2013)

    Article  Google Scholar 

  14. Stouffs, R.: Where associative and rule-based approaches meet: a shape grammar plug-in for Grasshopper. In: Fukuda, T., Huang, W., Janssen, P., Crolla, K., Alhadidi, S. (eds.) Learning, Adapting and Prototyping, vol. 2, pp. 453–462. CAADRIA, Hong Kong (2018)

    Google Scholar 

  15. Beirão, J.N.: CItyMaker: designing grammars for urban design. Ph.D. thesis. Faculty of Architecture, Delft University of technology, Delft, The Netherlands (2012)

    Google Scholar 

  16. Grasl, T., Economou, A.: From shapes to topologies and back: an introduction to a general parametric shape grammar interpreter. Artif. Intell. Eng. Des. Anal. Manuf. 32, 208–224 (2018)

    Article  Google Scholar 

  17. Correia, R.C.: GRAMATICA: a general 3D shape grammar interpreter targeting the mass customization of housing. In: Achten, H., Pavliček, J., Hulín, J., Matejovská, D. (eds.) Digital Physicality, vol. 1, pp. 489–496. eCAADe, Brussels (2012)

    Google Scholar 

  18. Correia, R.C.: DESIGNA - A Shape Grammar Interpreter. Master’s thesis. IST Técnico Lisboa, Universidade de Lisboa, Lisbon, Portugal (2013)

    Google Scholar 

  19. Economou, A., Hong, T.-C., Ligler, H., Park, J.: Shape machine: a primer for visual computation. In: Lee, J.-H. (ed.) A New Perspective of Cultural DNA. KRS, pp. 65–92. Springer, Singapore (2021). https://doi.org/10.1007/978-981-15-7707-9_6

    Chapter  Google Scholar 

  20. Li, A.: A shape grammar for teaching the architectural style of the Yingzao fashi. Ph.D. thesis. Department of Architecture, Massachusetts Institute of Technology, Cambridge, MA (2001)

    Google Scholar 

  21. Duarte, J.P.: Customizing Mass Housing: A Discursive Grammar for Siza’s Malagueira Houses. Ph.D. thesis. Department of Architecture, Massachusetts Institute of Technology, Cambridge, MA (2001)

    Google Scholar 

  22. Stouffs, R.: Implementation issues of parallel shape grammars. Artif. Intell. Eng. Des. Anal. Manuf. 32(2), 162–176 (2018)

    Article  Google Scholar 

  23. Krishnamurti, R.: The arithmetic of shapes. Environ. Plann. B. Plann. Des. 7, 463–484 (1980)

    Article  Google Scholar 

  24. Krishnamurti, R.: The construction of shapes. Environ. Plann. B. Plann. Des. 8, 5–40 (1981)

    Article  Google Scholar 

  25. Stouffs, R., Krishnamurti, R.: Algorithms for classifying and constructing the boundary of a shape. J. Des. Res. 5(1), 54–95 (2006)

    Google Scholar 

  26. Jowers, Y., Earl, C.: Implementation of curved shape grammars. Environ. Plann. B. Plann. Des. 38, 616–635 (2011)

    Article  Google Scholar 

  27. Krishnamurti, R., Stouffs, R.: Spatial change: continuity, reversibility, and emergent shapes. Environ. Plann. B. Plann. Des. 24, 359–384 (1997)

    Article  Google Scholar 

  28. Stiny, G.: Computing with form and meaning in architecture. J. Archit. Educ. 39(1), 7–19 (1985)

    Article  Google Scholar 

Download references

Acknowledgements

I would like to thank Bui Do Phuong Tung for his development work on the SortalGI shape grammar interpreter, and Bianchi Dy for her development work on a previous version of the SortalGI Grasshopper plug-in.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Rudi Stouffs .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Stouffs, R. (2022). A Multi-formalism Shape Grammar Interpreter. In: Gerber, D., Pantazis, E., Bogosian, B., Nahmad, A., Miltiadis, C. (eds) Computer-Aided Architectural Design. Design Imperatives: The Future is Now. CAAD Futures 2021. Communications in Computer and Information Science, vol 1465. Springer, Singapore. https://doi.org/10.1007/978-981-19-1280-1_17

Download citation

  • DOI: https://doi.org/10.1007/978-981-19-1280-1_17

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-19-1279-5

  • Online ISBN: 978-981-19-1280-1

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics