InitialObjectDescriptor {
  objectDescriptorID 1
  ODProfileLevelIndication 0xFF
  sceneProfileLevelIndication 0xFE
  audioProfileLevelIndication 0xFF
  visualProfileLevelIndication 0xFF
  graphicsProfileLevelIndication 0xFE

  esdescr [
    ES_Descriptor {
      es_id 1
      decConfigDescr DecoderConfigDescriptor {
				streamType 3
				decSpecificInfo BIFSConfig {
				  isCommandStream true
				  pixelMetric false
				  pixelWidth 400
				  pixelHeight 400
				}
      }
    }
  ]
}

Group {
  children [
  	
  	Background2D { backColor 1 1 1}
    DEF VIEWPOINT Viewpoint {
        description "one"
        position 0 0 10
        orientation 0 1 0 0
    }
	  WorldInfo {
	   title "Extrusion test"
	   info ["This shows an Extrusion" "with interaction and texturing" "" "GPAC Regression Tests" "$Date: 2007-07-27 09:46:08 $ - $Revision: 1.2 $" "(C) 2002-2004 GPAC Team"]
	  }


		DEF TR Transform {
			translation 0 -1 0
			children [
				Shape {
					appearance Appearance {material Material {diffuseColor 1.0 0.8 0.0} texture DEF TX ImageTexture{} }
					geometry Extrusion {
						creaseAngle 1
						endCap FALSE
						beginCap TRUE
						solid  FALSE
						crossSection [
						# Circle
							 1.00  0.00,   0.92 -0.38,
							 0.71 -0.71,   0.38 -0.92,
							 0.00 -1.00,  -0.38 -0.92,
							-0.71 -0.71,  -0.92 -0.38,
							-1.00 -0.00,  -0.92  0.38,
							-0.71  0.71,  -0.38  0.92,
							 0.00  1.00,   0.38  0.92,
							 0.71  0.71,   0.92  0.38,
							 1.00  0.00
						]
						spine [
						# Straight-line
							0.0 0.0 0.0,  0.0 0.4 0.0,
							0.0 0.8 0.0,  0.0 1.2 0.0,
							0.0 1.6 0.0,  0.0 2.0 0.0,
							0.0 2.4 0.0,  0.0 2.8 0.0,
							0.0 3.2 0.0,  0.0 3.6 0.0,
							0.0 4.0 0.0
						]
						scale [
							1.8  1.8,  1.95 1.95,
							2.0  2.0,  1.95 1.95
							1.8  1.8,  1.5  1.5
							1.2  1.2,  1.05 1.05,
							1.0  1.0,  1.05  1.05,
							1.15 1.15,
						]
					}
				}
				DEF TOUCH TouchSensor {}
			]
		}

  DEF TS TimeSensor { cycleInterval 8.0 loop TRUE }
  DEF OI OrientationInterpolator  {
  	key [0 0.5 1]
  	keyValue [1 1 1 0, 1 1 1 3.14, 1 1 1 6.26]
 	}
		DEF C Conditional { buffer { REPLACE TX.url BY "./../auxiliary_files/logo.png"} }
		DEF RC Conditional { buffer { REPLACE TX.url BY ""} }
	]
}

ROUTE TOUCH.isActive TO C.activate
ROUTE TOUCH.isActive TO RC.reverseActivate

ROUTE TS.fraction_changed TO OI.set_fraction
ROUTE OI.value_changed TO TR.rotation
