media @ VU
[] readme course(s) preface I 1 2 II 3 4 III 5 6 7 IV 8 9 10 V 11 12 afterthought(s) appendix reference(s) example(s) resource(s) _

talk show tell print

vrml-math-BCCwz.vr

vrml-math-BCCwz.vr (wrl ) [ flux / bitmanagement / cortona / octaga ]


  
  
  NavigationInfo{ type "EXAMINE" }
  Viewpoint{ position 0 0 10 description "[100]"}
  Viewpoint{ position 7 0 7 orientation 0 1 0 .785 description "[110]"}
  Viewpoint{ position 6 6 6 orientation -1 1 0 .955 description "[111]"}
  Background{ skyColor 0 .5 0}
  
  DEF Clock TimeSensor { cycleInterval 10}
  DEF Animation OrientationInterpolator {
     key [ 0, 1 ]
     keyValue [ 1 1 1 0, 1 1 1 2.08 ]}
  
  PROTO At[ field SFVec3f trans 0 0 0]{
   Transform{ translation IS trans children[
    Shape{ appearance Appearance{ material Material{ diffuseColor 1 1 0 } }
     geometry Sphere{ radius 0.3}}]}
  }
  DEF XForm Transform{ children[
   At{} At{ trans 2 2 2} At{ trans 2 2 -2} At{ trans 2 -2 2} At{ trans 2 -2 -2}
   At{ trans -2 2 2} At{ trans -2 2 -2} At{ trans -2 -2 2} At{ trans -2 -2 -2}
   Shape{ appearance Appearance{
      material Material{ diffuseColor .5 .5 1 transparency .5}}
    geometry IndexedFaceSet{ solid FALSE coord Coordinate{
  point[
  1 2 0,0 2 1,-1 2 0,0 2 -1,  1 -2 0,0 -2 1,-1 -2 0,0 -2 -1,
  2 1 0,2 0 1,2 -1 0,2 0 -1,  -2 1 0,-2 0 1,-2 -1 0,-2 0 -1,
  1 0 2,0 1 2,-1 0 2,0 -1 2,  1 0 -2,0 1 -2,-1 0 -2,0 -1 -2]}
  coordIndex[
  0 3 2 1 -1 4 5 6 7 -1 8 9 10 11 -1 12 15 14 13 -1 16 17 18 19 -1 20 23 22 21 -1
  0 1 17 16 9 8 -1 1 2 12 13 18 17 -1 2 3 21 22 15 12 -1 3 0 8 11 20 21 -1
  4 10 9 16 19 5 -1 5 19 18 13 14 6 -1 6 14 15 22 23 7 -1 7 23 20 11 10 4
  ]}}
    DEF Touch TouchSensor{}]
  }
  ROUTE Touch.touchTime TO Clock.startTime
  ROUTE Clock.fraction_changed TO Animation.set_fraction
  ROUTE Animation.value_changed TO XForm.rotation
  


(C) A. Eliëns 2/9/2007

You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.