#VRML V2.0 utf8 # CAP5805 Computer Simulation # Final Project # Laurentiu Iancu # liancu@cise.ufl.edu # Metaphor Protos PROTO MetaphorPlace [ exposedField SFVec3f translation 0.0 0.0 0.0 exposedField SFRotation rotation 0 0 1 0.0 exposedField SFColor diffuseColor 0.0 1.0 1.0 ] { Transform { translation IS translation rotation IS rotation children [ Shape { appearance DEF MetaphorPlaceAppearance Appearance { material Material { diffuseColor IS diffuseColor } } geometry Cylinder { radius 1.0 height 0.5 } }, Transform { rotation 0 0 1 1.570796 children Shape { appearance USE MetaphorPlaceAppearance geometry Cylinder { radius 0.05 height 2.5 } } } ] } } PROTO MetaphorBaggage [ # token that represents an instruction being processed exposedField SFVec3f translation 0.0 0.0 0.0 exposedField SFColor diffuseColor 1.0 0.0 1.0 exposedField SFFloat transparency 0.0 exposedField SFVec3f localtranslation 0.0 0.0 0.0 exposedField SFRotation localrotation 0 0 1 0.0 exposedField SFVec3f localcenter 0.0 0.0 0.0 ] { Transform { translation IS translation children Transform { translation IS localtranslation rotation IS localrotation center IS localcenter children [ Shape { appearance Appearance { material Material { diffuseColor IS diffuseColor transparency IS transparency } } geometry Box { size 1.0 0.7 0.3 } } ] } } } PROTO MetaphorClaw [ # token that marks that a pipeline stage is available exposedField SFVec3f translation 0.0 0.0 0.0 exposedField SFColor diffuseColor 1.0 0.75 1.0 exposedField SFVec3f localtranslation 0.0 0.0 0.0 ] { Transform { translation IS translation children Transform { translation IS localtranslation children [ Transform { translation 0.0 0.7 0.0 # was 0.0 0.45 0.0 children Shape { appearance DEF MetaphorClawAppearance Appearance { material Material { diffuseColor IS diffuseColor } } geometry Cylinder { radius 0.05 height 0.8 # was 0.3 } } }, Transform { translation 0.0 0.0 0.0 children Shape { appearance USE MetaphorClawAppearance geometry Extrusion { creaseAngle 1.571 crossSection [ 0.100 0.000, 0.092 -0.038, 0.071 -0.071, 0.038 -0.092, 0.000 -0.100, -0.038 -0.092, -0.071 -0.071, -0.092 -0.038, -0.100 0.000, -0.092 0.038, -0.071 0.071, -0.038 0.092, 0.000 0.100, 0.038 0.092, 0.071 0.071, 0.092 0.038, 0.100 0.000 ] spine [ 0.000 -0.177 0.177, 0.000 -0.096 0.231, 0.000 0.000 0.250, 0.000 0.096 0.231, 0.000 0.177 0.177, 0.000 0.231 0.096, 0.000 0.250 0.000, 0.000 0.231 -0.096, 0.000 0.177 -0.177, 0.000 0.096 -0.231, 0.000 0.000 -0.250, 0.000 -0.096 -0.231, 0.000 -0.177 -0.177 ] scale [ 0.7 0.7, 0.8 0.8, 0.8 0.8, 0.9 0.9, 0.9 0.9, 1.0 1.0, 1.0 1.0, 1.0 1.0, 0.9 0.9, 0.9 0.9, 0.8 0.8, 0.8 0.8, 0.7 0.7 ] } } } ] } } } PROTO MetaphorTransition [ exposedField SFVec3f translation 0.0 0.0 0.0 exposedField SFColor diffuseColor 0.5 1.0 0.25 ] { Transform { translation IS translation children [ Transform { translation 0.0 0.0 0.9 children DEF MetaphorTransitionLateral Shape { appearance DEF MetaphorTransitionAppearance Appearance { material Material { diffuseColor IS diffuseColor } } geometry Box { size 1.0 3.0 0.5 } } }, Transform { translation 0.0 0.0 -0.9 children USE MetaphorTransitionLateral }, Transform { translation 0.0 1.25 0.0 children DEF MetaphorTransitionTopBottom Shape { appearance USE MetaphorTransitionAppearance geometry Box { size 1.0 0.5 1.3 } } }, Transform { translation 0.0 -1.25 0.0 children USE MetaphorTransitionTopBottom }, Shape { appearance Appearance { material Material { diffuseColor 0.0 0.5 1.0 transparency 0.5 } } geometry Box { size 0.1 2.0 1.3 } } ] } } PROTO MetaphorTrolley [ exposedField SFVec3f translation 0.0 0.0 0.0 exposedField SFRotation rotation 0 0 1 0.0 exposedField SFColor diffuseColor 1.0 1.0 0.0 ] { Transform { translation IS translation rotation IS rotation children [ Transform { translation 0.0 0.0 0.75 children DEF MetaphorTrolleyShaft Shape { appearance DEF MetaphorTrolleyAppearance Appearance { material Material { diffuseColor IS diffuseColor } } geometry Box { size 7.4 0.48 0.3 # was 7.4 0.5 0.3 } } }, Transform { translation 0.0 0.0 -0.75 children USE MetaphorTrolleyShaft }, Transform { translation 3.7 0.0 0.0 children DEF MetaphorTrolleyCurve Shape { appearance USE MetaphorTrolleyAppearance geometry Extrusion { convex FALSE creaseAngle 1.571 crossSection [ 0.000 0.900, 0.176 0.883, 0.344 0.831, 0.500 0.748, 0.636 0.636, 0.748 0.500, 0.831 0.344, 0.883 0.176, 0.900 0.000, 0.883 -0.176, 0.831 -0.344, 0.748 -0.500, 0.636 -0.636, 0.500 -0.748, 0.344 -0.831, 0.176 -0.883, 0.000 -0.900, 0.000 -0.750, 0.000 -0.600, 0.117 -0.588, 0.230 -0.554, 0.333 -0.499, 0.424 -0.424, 0.499 -0.333, 0.554 -0.230, 0.588 -0.117, 0.600 0.000, 0.588 0.117, 0.554 0.230, 0.499 0.333, 0.424 0.424, 0.333 0.499, 0.230 0.554, 0.117 0.588, 0.000 0.600, 0.000 0.900 ] spine [ 0.0 -0.24 0.0, # was 0.0 -0.25 0.0 0.0 0.24 0.0 # was 0.0 0.25 0.0 ] } } }, Transform { translation -3.7 0.0 0.0 rotation 0 1 0 3.141593 children USE MetaphorTrolleyCurve }, Transform { translation 0.0 0.0 -0.75 children Shape { appearance Appearance { # same as MetaphorPlaceAppearance material Material { diffuseColor 0.0 1.0 1.0 } } geometry Cylinder { radius 1.0 height 0.5 } } } ] } }