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-BCC7.vr

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


  
  
  NavigationInfo{ type "EXAMINE" }
  Viewpoint{ fieldOfView .1 position 0 0 150 description "[100]"}
  Viewpoint{ fieldOfView .1 position 106 0 106 orientation 0 1 0 .785 description "[110]"}
  Viewpoint{ fieldOfView .1 position 84 84 84 orientation -1 1 0 .955 description "[111]"}
  DEF XForm Transform{ children[] }
  Script{
    field SFNode XForm USE XForm
    directOutput TRUE
  url ["javascript:
  function initialize() { 
    var i,j,k, n=4,  Str = '';
    for ( i= -n; i<= n; i += 2) {
      sj = '';
      for ( j= -n; j<= n; j += 2) {
        sk = '';
        for ( k= -n; k<= n; k += 2) {
          sk += 'My{ trans '+i+' '+j+' '+k+'}';
          if ( (i > -n )&&(j > -n )&&( k > -n ) )
            sk += 'My{ trans '+(i-1)+' '+(j-1)+' '+(k-1)+'}';}
        sj +=sk;}
      Str += sj;}
    XForm.addChildren = Browser.createVrmlFromString(
  'PROTO My[ field SFVec3f trans 0 0 0]{'+
  'Transform{ translation IS trans children['+
  'Shape{ appearance Appearance{ material Material{ diffuseColor 1 1 0 } }'+
  'geometry Sphere{ radius 0.15 }}]}}' + Str );
  }"]
  }
  


(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.