BoxTransform


  
  PROTO BoxTransform [
          field SFRotation boxRotation 0  0  0  0.0
          field SFVec3f boxTranslation 0  0  0
          field SFColor boxColor 1.0  1.0  1.0
          field SFVec3f boxSize 2.0  2.0  2.0
  ]
  {
          Transform {
                  rotation IS boxRotation
                  translation IS boxTranslation
                  children [
                          Shape {
                                  appearance Appearance {
                                          material Material {
                                                  diffuseColor IS boxColor
                                          }
                                  }
                                  geometry Box {
                                          size IS boxSize
                                  }
                          }
                  ]
          }
  }