48-747 shape grammars - carnegie mellon university...1 transformation grammar 2 to compare languages...

52
48-747 Shape Grammars Forming New Languages from Old

Upload: others

Post on 19-Aug-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,

48-747 Shape Grammars

FormingNewLanguagesfromOld

Page 2: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,

SpatialMetathesis

Page 3: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,

RECAPgrammarparadigm

Vocabulary!

GRAMMAR!

Spatial Relations!

Rules!

LANGUAGE of designs!

Initial shape!x→ s+t(additive)s+t→x(subtractive)

augmentedby

theuseoflabels Rules!

LANGUAGE!

Encapsulates“theme” Exploredfordesign“styles”Perhapsmotivatedbyrevivalorrestoration

GothicClassicalIslamicEasternstyles

Page 4: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,

Languagesgivebirthtonewlanguages

Page 5: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,

metathesis

transpositionofletters,words,sounds,syllables

bird←brid

evelate←elevate(spoonerism)

whynottranspositionofshapesorimagesbyshapereplacement?

Page 6: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,

metathesis

considertheletterequivalencep↔t

pot

tot

top

pop

byanalogythisleadstothenotionofshapeequivalencea↔b

Page 7: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,

shapeequivalencerule

Isoftheforma↔bwhereneitheranorbisempty

ApplytheruletoaspatialrelationR,asetofshapes,toproduceanewspatialrelationNprovidedRcontainsashapesandthereisageometricaltransformationfsuchthateithers=f(a)ors=f(b)

N=S–f(a)+f(b)ifs=f(a)

N=S–f(b)+f(a)ifs=f(b)

Page 8: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,
Page 9: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,
Page 10: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,

exampledesigns

Page 11: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,

ifwecanhaveshapeequivalenceruleswhynotshapeequivalenceschemas?

Page 12: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,

shapeequivalenceschema

Page 13: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,

shapeequivalenceschema

Isaschemaoftheforma↔bwhereneitheranorbisempty,aandbhaveopenterms

ApplytheschematoaspatialrelationR,asetofshapes,toproduceanewspatialrelationNprovidedRcontainsashapes,thereisanassignmentgtoallopenvariablesinaandb,andthereisageometricaltransformationfsuchthateithers=f(a)ors=f(b)

N=S–f(g[a])+f(b)ifs=f(g[a])

N=S–f(b)+f(a)ifs=f(g[b])

Page 14: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,

WhatwehaveseensofarisaFLIP‐FLOPbetweenshapes/schemaswiththeimplicitPROVISOthatnonewshapesareintroducedintotherelation

Page 15: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,

whataboutintroducingnewshapesintotheequivalencerule

transitionfromRomanesquetoGothicarches?

Page 16: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,
Page 17: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,
Page 18: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,
Page 19: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,

anymorevariations?

Wehavea↔b

Wecanconstructclassesofspatialrelationsbylookingatf[h(a)]andg[j(b)]sothat

N=S–f(a)+g(b)

N=S–f(h(b))+g(j(a))

Page 20: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,
Page 21: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,
Page 22: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,
Page 23: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,

tomakethistransitionideaworkonemustconsiderheuristicsinhowtheshapeequivalencerulesareapplied.

Page 24: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,

TransformationofGrammars

Page 25: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,

thebasicidea

Vocabulary1 Vocabulary2

SpatialRelation1 SpatialRelation2

Rules1 Rules2

Language2Language1

metatheticalchangerules

isomorphism

derivationalstructure derivationalstructure

GRAMMAR1 GRAMMAR2Transformation

Page 26: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,

tocomparelanguages

weneedtoensurethatgrammarsarespecifiedinannormalizedfashion–i.e.,inthesamesortofwayeverytime

hence,grammarsinnormalform

Vocabulary

PurelyAdditiverules

PurelySubtractiverules

Labelsarespatial

–how

–where

Statesarenonspatial–when

Page 27: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,

nonspatialorstatelabels

Page 28: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,

spatial–whereandhowlabels

Page 29: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,

stateandspatiallabels

Page 30: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,

grammarinnormalform

Page 31: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,

recursivestructureR(G)

Isabasicpropertyofgrammars

Expressesarelationshiponrules,theinitialshapeandselectedtypicalderivationsofdesignsinthegrammar

R(G)={(rulex,ruley)…}where(rulex,ruley)isamemberofR(G)whenever

•  Rulexisadditiveoristheinitialshape

•  Ruleyispurelyadditiveorpurelysubtractiveandruleyisappliedtothatpartofthedesignthatincludesasubshapeofalabeledshapewhichwasaddedbyapreviousapplicationofrulex

i.e.,rulexmakesruleypossible

Page 32: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,
Page 33: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,
Page 34: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,
Page 35: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,

transformationofgrammars

Comprisestwoindependentstages

DefiningshapechangerulesspecifyingtransformationTAbetweenaninitialandfinalsetofrelations

DefiningstatechangerulesspecifyingtransformationTB

TAandTBarecombinedtoproduceacompletetransformationTofG.

Page 36: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,

derivingafinalsetofrelations

Page 37: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,

transformation

Page 38: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,
Page 39: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,
Page 40: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,
Page 41: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,
Page 42: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,

PrairietoUsonian

Page 43: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,

theprairiehousegrammarinformalform

Page 44: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,
Page 45: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,
Page 46: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,
Page 47: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,

initialsetofspatialrelations

Page 48: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,

changerules

Page 49: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,

derivingasetoffinalspatialrelations

Page 50: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,

transformation!

Page 51: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,
Page 52: 48-747 Shape Grammars - Carnegie Mellon University...1 Transformation GRAMMAR 2 to compare languages we need to ensure that grammars are specified in an normalized fashion – i.e.,