vr2-5-18.wrl


[ VRML source code ]

#VRML V2.0 utf8
#vr2-5-18.wrl
Background { skyColor 0 0 1 }
Group {
  children [
    DEF CS CylinderSensor {}
    DEF Axis Transform {
      children [
        Shape {
          appearance DEF Check Appearance {
            texture ImageTexture {
              url "check.gif"
            }
          }
          geometry Cylinder {
            radius 40
          }
        }
        Shape {
          appearance USE Check
          geometry Cylinder {
            radius 4
            height 80
          }
        }
        Transform {
          translation 0 45 0
          children DEF AxisEnd Shape {
            appearance USE Check
            geometry Cone {
              bottomRadius 4
              height 10
            }
          }
        }
        Transform {
          translation 0 -45 0
          rotation    1 0 0  3.14159
          children USE AxisEnd
        }
      ]
    }
  ]
}
Transform {
  rotation 1 0 0  1.5708
  children Shape {
    appearance DEF MyYellow Appearance {
      material Material {
        diffuseColor  0.8 0.8 0.2
      }
    }
    geometry DEF Ring Cylinder {
      radius 50
      height 5
      top    FALSE
      bottom FALSE
    }
  }
}
Transform {
  rotation 0 1 0  1.5708
  children Shape {
    appearance USE MyYellow
    geometry USE Ring
  }
}
Transform {
  rotation 0 0 1 1.5708
  children Shape {
    appearance USE MyYellow
    geometry USE Ring
  }
}
Transform {
  translation 0 50 0
  children Shape {
    appearance Appearance {
      material Material {
        diffuseColor 1 1 0
      }
    }
    geometry Cylinder {
      radius 2
      height 5
    }
  }
}
Transform {
  translation 0 -50 0
  children Shape {
    appearance Appearance {
      material Material {
        diffuseColor 1 1 0
      }
    }
    geometry Cylinder {
      radius 2
      height 5
    }
  }
}
ROUTE CS.rotation_changed TO Axis.set_rotation