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 600
				  pixelHeight 400
				}
      }
    }
  ]
}


EXTERNPROTO PlaneClipper [
    exposedField SFVec3f plane_normal 1 0 0
    exposedField SFFloat plane_distance 0.0
    exposedField MFNode children []
]
[ "urn:inet:gpac:builtin:PlaneClipper"]



Group {
  children [
		WorldInfo {
   		info ["This shows GPAC PlaneClipper HardcodedProto" "The plane clipper normal and distance are interpolated to cut the mesh at different places" "GPAC Regression Tests" "$Date: 2007-07-27 09:46:10 $ - $Revision: 1.2 $" "(C) 2002-2004 GPAC Team"]
   		title "PlaneClipper HardcodedProto"
  	}
  	Background2D { backColor 1 1 0}
    DEF VIEWPOINT Viewpoint {
        description "one"
        position 0 0 10
    }
    DEF PC PlaneClipper {
    	children [
    		Inline { url "./../auxiliary_files/nefertiti.wrl" }
    	]
    }
    DEF TS TimeSensor { cycleInterval 4.0 loop TRUE}
    DEF SI ScalarInterpolator {
    	key [0 0.5 1]
    	keyValue [-3 3 -3]
    }
    DEF TS2 TimeSensor { cycleInterval 12.0 loop TRUE}
    DEF PI PositionInterpolator {
#    	key [0 0.333 0.334 0.666 0.667 1]
#    	keyValue [1 0 0 1 0 0 0 1 0 0 1 0 0 0 -1 0 0 -1]
    	key [0 0.33 0.666 1]
    	keyValue [1 0 0, 0 1 0, 0 0 -1, 1 1 0]
    }
	]
}

ROUTE TS.fraction_changed TO SI.set_fraction
ROUTE SI.value_changed TO PC.plane_distance
ROUTE TS2.fraction_changed TO PI.set_fraction
ROUTE PI.value_changed TO PC.plane_normal
