scheme


  
  PROTO scheme [
  exposedField SFFloat radius 1
  exposedField SFColor color 1 0 0
  exposedField SFFloat speed 0.1
  exposedField SFFloat accel 0.1
  exposedField SFVec3f translation 0 0 0
  exposedField SFVec3f scale 0.5 0.5 0.5
  exposedField SFRotation rotation 0 0 0 0
  ]{
  DEF GROUP Transform {
  translation IS translation
  scale IS scale
  rotation IS rotation
  children [
  Shape {
           geometry Sphere { radius 10 }
           appearance Appearance {
                  material DEF MATERIAL Material {
                          diffuseColor IS color
                          transparency 0.9
                          }
                  }
  }
  system { translation -2 0 0 rotation 0 0 1 4.71 scale 0.5 0.5 0.5 }
  system { translation 2 0 0 rotation 0 0 1 1.57 scale 0.5 0.5 0.5 }
  system { translation 0 0 2 rotation 1 0 0 1.57 scale 0.5 0.5 0.5 }
  system { translation 0 0 -2 rotation 1 0 0 4.71 scale 0.5 0.5 0.5 }
  ]}
  }
  
  Switch {
  whichChoice -1
  choice [
  DEF SCHEME scheme { }
  ]}