Table Of ContentEditor 1 Herausgeber:
Praf. Sa/amon Klaczko-Ryndziun, Frankfurt a. M.
Co-Editors 1 Mitherausgeber:
Praf. Ranan Banerji, Temple University, Phi/adelphia
Praf. Jerome A. Feldman, University of Rochester, Rochester
Praf. Mohamed Abdelrahman Mansour, ETH, Zurich
Praf. Ernst Billeter, Universităt Fribourg, Fribourg
Praf. Christof Burckhardt, EPF, Lausanne
Praf. /var Ugi, Technische Universităt Munchen
lnterdisciplinary Systems Research lnterdisziplinăre Systemforschung
Ana!ys1s-Modellmg-SlmulatlOn Analyse-Formallslerung-S1mulation
The system science has been developed from severa/ Die Systemwissenschaft hat sich aus der Verbindung
scientific fie/ds: control and communication theory, mehrerer Wissenschaftszweige entwickelt: der Rege
model theory and computer science. Nowadays it ful lungs- und Steuerungstheorie, der Kommunikationswis
fills the requirements which Norbert Wiener formulated senschaft, der Model/theorie und der lnformatik. Sie
originally for cybernetics; and were not feasible at his erfiillt heute das Programm, das Norbert Wiener mit
time, because of insufficient development of computer seiner Definition von Kybernetik urspriinglich vorgelegt
science in the past. hat und dessen Durchfiihrung zu seiner Zeit durch die
Research and practica/ application of system science noch ungeniigend entwickelte Computerwissenschaft
involve works of specialists of system science as we/1 stark eingeschrănkt war.
as of those from various fields of application. Up to Die Forschung und die praktische Anwendung der Sy
now, the efficiency of this co-operation has been proved stemwissenschaft bezieht heute sowohl die Fachleute
in many theoretica/ and practica/ works. der Systemwissenschaft als auch die Spezialisten der
The series 'lnterdisciplinary Systems Research' is in Anwendungsgebiete ein. In vie/en Bereichen hat sich
tended tobe a source of information for university diese Zusammenarbeit mittlerweile bewăhrt.
students and scientists involved in theoretical and ap Die Reihe «<nterdisziplinăre Systemforschung» setzt
plied systems research. The reader sha/1 be informed sich zum Ziei, dem Studenten, dem Theoretiker und
about the most advanced state of the art in research, dem Praktiker iiber den neuesten Stand aus Lehre und
application, /ecturing and metatheoretica/ criticism in Forschung, aus der Anwendung und der metatheore
this area. It is a/sa intended to enlarge this area by in tischen Kritik dieser Wissenschaft zu berichten.
c/uding diverse mathematica/ mode/ing procedures Dieser Rahmen soli noch insofern erweitert werden, a/s
developed in many decades for the description and op die Reihe in ihren Publikationen die mathematischen
timization of systems. Modellierungsverfahren mit einbezieht, die in verschie
In contrast to the former tradition, which restricted the densten V'lissenschaften in vie/en Jahrzehnten zur
theoretica/ control and computer science to mathemati Beschreibung und Optimierung van Systemen erarbeitet
cians, physicists and engineers, the present series em wurden.
phasizes the in~erdisciplinarity which system science Entgegen der friiheren Tradition, in der die theoretische
has reached until now, and which tends to expaPd. City Regelungs-und Computerwissenschaft auf den Kreis
and regional planners, psychologists, physiologists. der Mathematiker, Physiker und lngenieure beschrănkt
economists, ecologists, food scientists, sociologists. war, liegt die Betonung dieser Reihe auf der lnterdiszi
politica/ scientists, lawyers, pedagogues, philologrsts, plinarităt, die die Systemwissenschaft mittlerweile er
managers, diplomats military scientists and other spe reicht hat und weiter anstrebt. Stadt- und Regionalpla
cialists are increasingly confronted or even charged ner, Psychologen, Physiologen, Betriebswirte, Vo/ks
with problems of system science. wirtschafter, Okologen, Ernăhrungswissenschafter,
The ISR series wi/1 conta in research reports-including Soziologen, Politologen, Juristen, Pădagogen, Mana
PhD-theses -lecture notes, readers for lectures and ger, Diplomaten, Militărwissenschafter und andere Fach
proceedings of scientific symposia. The use of /ess ex leute sehen sich zunehmend mit Aufgaben der System
pensive printing methods is provided to assure that the forschung konfrontiert ader sogar beauftragt.
authors' results may be offered for discussion in the Die ISR-Reihe wird Forschungsberichte-einschliess
shortest time to a broad, interested community. In or lich Dissertationen -, Vorlesungsskripten, Readers zu
der to assure the reproducibility of the published results Vorlesungen und Tagungsberichte enthalten. Die Ver
the coding lists of the used programs shou/d be in wendung wenig aufwendiger Herstellungsverfahren sol/
c/uded in reports about computer simu/ation. dazu dienen, die Ergebnisse der A utoren in k iirzester
The international character of this series is intended to Frist ein er mdglichst breiten, interessierten Offent/ich
be accomplished by including reports in German, Eng keit zur Diskussion zu stellen. Um auch die Reprodu
lish and French, both from universities and research zierbarkeit der Ergebnisse zu gewăhrleisten, werden in
centers in the whole world. To assure this gaal, the edi Berichten iiber Arbeiten mit dem Computer wenn im
tors' board wi/1 be cam posed of representatives of the mer mdglich auch die Befehlslisten im Anhang mitge
different countries and areas of interest. druckt.
Der internationale Charakter der Reihe soli durch die
Aufnahme van Arbeiten in Deutsch, Englisch und Franzd
sisch aus Hochschulen und Forschungszentren aus al/er
We/t verwirk licht werden. Dafiir sol/ ein e entspre
chende Zusammensetzung des Herausgebergremiums
sorgen.
ISR 10
lnterdisciplinary Systems Research
lnterdisziplinăre Systemforschung
JamesGips
Shape Grammars
and their Uses
Artificial Perception, Shape Generation
and Computer Aesthetics
1976 Springer Basel AG
Ali Rights Reserved. No part of this publication may be reproduced. stored in a retrieval
system. ortransmitted. in anyform or by any means. electronic. mechanical. photocopying.
recording or otherwise. without the prior permission of the Copyright owner.
©Springer Basel AG 1975
Originally published by Birkhauser Verlag Basel in 1975
ISBN 978-3-7643-0794-3 ISBN 978-3-0348-5753-6 (eBook)
DOI 10.1007/978-3-0348-5753-6
ACKNOWLEDGMENTS
Important parts of this research were done in collaboration with George Stiny,
a graduale student in System Science at U.C.L.A. In particular, the three formalisms
used (i.e. shape grammars, the formalism for specifying paintings, and the formalism
for specifying aesthetic viewpoints) were developed jointly. Sections 1.1 and
3.1.1.1 - 3.1.1.4 are a revised version of [Stiny and Gips 1972l Portions of
Section 3.2 are expansions of [Gips and Stiny 1973], [Stiny and Gips 1974], and
(Gips and Stiny, in press]. Stiny's research has concentrated on the mathematical
properties of these formalisms, rather than their applications, and will be reported
in his forthcoming dissertation [Stiny, in preparation].
1 would like to thank Professor Jerome Feldman for his lnvaluable help as my
thesis advisor and his consistently good advice throughout my stay at Stanford,
Professors Jeffrey Raskin and Vinton Cerf for serving so conscientiously on my
reading committee, and Professors Thomas Cover, John McCarthy, Roger Shepard,
and Robert Floyd (as well as those previously named) for valuable discussions on
various facets of this research.
Finally, 1 would like to thank my wife, Pat, for her constant support,
understanding, and encouragement.
This research was supported in part by a fellowship from the International
Business Machines Corporation and in part by a student research assistantship at
the Stanford Artificial lntelligence Laboratory under Contract No. SD-183 and
Contract No. DAHC 15-73-C-0435 of the Advanced Research Projects Agency of
the Office of the Secretary of Defense. 1 am most grateful to IBM and to ARPA for
their financial support. The views and conclusions in this document are those of
the author and should not be interpreted as necessarily representing the official
policies, either expressed or implied, of IBM, of ARPA, or of the U.S. government.
This manuscript is a slightly revised version of a dissertation submitted in
March 1974 to the Computer Science Department and the Committee on Graduale
Studies of Stanford University in partial fulfillment of the requirements for the
degree of Doctor of Philosophy.
TABLE OF CONTENTS
lntroduction 1
Section 1 Shape grammars: definitions, examples, related work 3
1.1 Definitions 4
1.2 Restricted shape grammars 6
1.3 Parallel shape grammars 7
1.4 Examples: embedded squares 8
1.5 Example: reversible figure 20
1.6 Examples: mathematical curves 26
1.6.1 Snowflake curve 26
1.6.2 Peano's curve variation 33
1.6.3 Hilbert's curve 37
1.7 Simulation of Turing machines 44
1.8 Related work 48
1.8.1 Array grammars 48
1.8.2 Graph grammars 51
1.8.3 Picture description grammars 54
1.8.4 Grammars with coordinates 57
1.9 A symbolic characterization of shape grammars 60
Table of Contentt (cont.)
Section 2 Analysis of shapes using shape grammars: a program
that performs a three-dimensional perceptual task 63
2.1 The task 65
2.2 Program overview 70
2.3 Preprocessing 71
2.4 Analysis and model building 77
2.5 Comparison of modela 88
2.6 Program results 91
2.7 Limitations and possible extensions 94
Section 3 Generation of shapes using shape grammars:
computer art and aesthetics 97
3.1 Specification of painting using shape grammars 99
3.1.1 Generative specifications 99
3.1.1.1 Shape grammar 10 0
3.1.1.2 Selection rule 106
3.1.1.3 Painting rules 108
3.1.1.4 Limiting shape 110
3.1.1.5 Example: Eve "11 1
3.1.1.6 Example: Yellow Cross 113
3.1.2 Computer implementation 116
3.1.2.1 Interactive definition of shape grammar 118
3.1.2.2 Shape generation 127
Table of Contents (cont.)
3.1.2.3 Display of line drawing 130
3.1.2.4 Transformation of line drawing to image
of the painting 132
3.1.2.5 Display of painting 134
3.1.2.6 The number of memory words used to
represent a generativa specification 137
3.1.2.7 Example: Urform 139
3.1.2.8 Example: Star 142
3.1.2.9 Example: Aleatory 145
3.2 Aesthetics 148
3.2.1 Original motivation 148
3.2.2 General observations on aesthetics 149
3.2.3 Aesthetic systems 154
3.2.3.1 Aesthetic systems: interpretation
and reference 155
3.2.3.2 Aesthetic systems: evaluation
and ordering 163
3.2.4 Aesthetic systems and information theory 166
3.2.5 An aesthetic system for paintings definable by
generativa specifications 169
3.2.6 Computer implementation 172
3.2.7 Example: Anamorphism 1 - VI 178
3.2.8 Comments 187
Description:Shape grammars provide a means for the recursive specification of shapes. The formalism for shape grammars is designed to be easily usable and understandable by people and at the same time to be adaptable for use in computer programs. Shape grammars are similar to phrase structura grammars, which we