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

web3d-willem-frame.vr

web3d-willem-frame.vr (wrl ) [ flux / bitmanagement / cortona / octaga ]


  
  
  PROTO Frame [
      field MFVec3f spine [0 0 0, 0 10 0, 10 10 0, 10 0 0, 0 0 0]
      field MFVec2f crossSection [1 1, 1 0, 0 0, 0 1, 1 1]
      exposedField SFVec3f scale 0.1 0.1 0.1
      exposedField SFVec3f translation 0 0 0
      exposedField SFRotation rotation 0 1 0 0
  ]
  {
      
      Transform {
            scale IS scale
            translation IS translation
            rotation IS rotation
            children [
                  Shape {
                      
                      appearance Appearance {
                            material Material {
                                  diffuseColor 0 0.53 0
                            }
                      }
                      geometry Extrusion {
                            
                            crossSection IS crossSection
                            
                            spine IS spine
                      }
                  }
            ]
      }
  }
  
  Frame { 
      translation -2 0 0
      scale 0.1 0.1 0.1
      spine [0 0 0, 0 10 0, 20 10 0, 20 0 0, 0 0 0]
      rotation 0 1 0 3.14
  
  }
    
  
    
  

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