@prefix :        <https://www.web3d.org/x3d/content/examples/Savage/AircraftHelicopters/AH1SuperCobraUnitedStates/FourBladeMainRotorPrototype.ttl#> .
@prefix owl:     <http://www.w3.org/2002/07/owl#> .
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema:  <http://schema.org/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
@prefix x3d:     <https://www.web3d.org/specifications/x3d-4.0.xsd#> .
@prefix x3do:    <https://www.web3d.org/specifications/X3dOntology4.0#> .

:X3D a owl:NamedIndividual, x3do:X3D ;
  x3do:hasHead :head ;
  x3do:hasScene :Scene ;
  x3do:profile 'Immersive' ;
  x3do:version '3.0' ;
  x3do:noNamespaceSchemaLocation 'https://www.web3d.org/specifications/x3d-3.0.xsd' .
:head a owl:NamedIndividual, x3do:head ;
  x3do:hasParent :X3D ;
  x3do:hasMeta :meta_1_1, :meta_1_2, :meta_1_3, :meta_1_4, :meta_1_5, :meta_1_6, :meta_1_7, :meta_1_8, :meta_1_9 .
:meta_1_1 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'FourBladeMainRotorPrototype.x3d' ;
  x3do:name 'title' .
:meta_1_2 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Prototypes a 4 blade main rotor and its shaft for a helicopter, rotating clockwise as seen from above.' ;
  x3do:name 'description' .
:meta_1_3 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Jane Wu, Etsuko Lippi' ;
  x3do:name 'creator' .
:meta_1_4 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '21 March 2001' ;
  x3do:name 'created' .
:meta_1_5 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '20 October 2019' ;
  x3do:name 'modified' .
:meta_1_6 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'SuperCobraPrototype.x3d' ;
  x3do:name 'reference' .
:meta_1_7 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/Savage/AircraftHelicopters/AH1SuperCobraUnitedStates/FourBladeMainRotorPrototype.x3d' ;
  x3do:name 'identifier' .
:meta_1_8 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit' ;
  x3do:name 'generator' .
:meta_1_9 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '../../license.html' ;
  x3do:name 'license' .
:meta dcterms:title "FourBladeMainRotorPrototype.x3d" .
:meta dcterms:description "Prototypes a 4 blade main rotor and its shaft for a helicopter, rotating clockwise as seen from above." .
:meta dcterms:creator "Jane Wu, Etsuko Lippi" .
:meta dcterms:created "21 March 2001" .
:meta dcterms:modified "20 October 2019" .
:meta dcterms:reference "SuperCobraPrototype.x3d" .
:meta dcterms:identifier "https://www.web3d.org/x3d/content/examples/Savage/AircraftHelicopters/AH1SuperCobraUnitedStates/FourBladeMainRotorPrototype.x3d" .
:meta dcterms:generator "X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit" .
:meta dcterms:license "../../license.html" .
:Scene a owl:NamedIndividual, x3do:Scene ;
  x3do:hasParent :X3D ;
  x3do:hasProtoDeclare :ProtoDeclare_2_1 ;
  x3do:hasChildren :WorldInfo_2_2, :Background_2_3, :Viewpoint_2_4, :Viewpoint_2_5, :ExampleMainRotor, :Transform_2_7, :ExampleSelection ;
  x3do:hasROUTE :ROUTE_2_9, :ROUTE_2_10, :ROUTE_2_11 .
:ProtoDeclare_2_1 a owl:NamedIndividual, x3do:ProtoDeclare ;
  x3do:hasParent :Scene ;
  x3do:hasProtoInterface :ProtoInterface_2_1_1 ;
  x3do:hasProtoBody :ProtoBody_2_1_2 ;
  x3do:name 'FourBladeMainRotor' .
:ProtoInterface_2_1_1 a owl:NamedIndividual, x3do:ProtoInterface ;
  x3do:hasParent :ProtoDeclare_2_1 ;
  x3do:hasField :field_2_1_1_1 .
:field_2_1_1_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ProtoInterface_2_1_1 ;
  x3do:accessType 'inputOnly' ;
  x3do:appinfo 'enable or disable rotor rotation' ;
  x3do:name 'rotationOn' ;
  x3do:type 'SFBool' .
:ProtoBody_2_1_2 a owl:NamedIndividual, x3do:ProtoBody ;
  x3do:hasParent :ProtoDeclare_2_1 ;
  x3do:hasChildren :MainRotor ;
  x3do:hasROUTE :ROUTE_2_1_2_2, :ROUTE_2_1_2_3, :ROUTE_2_1_2_4, :ROUTE_2_1_2_5 .
:MainRotor a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :ProtoBody_2_1_2 ;
  x3do:hasChildren :Transform_2_1_2_1_1, :RotationSwitch, :BladeRotationOnOffScript, :Clock, :MainRotorPath ;
  x3do:DEF 'MainRotor' .
:Transform_2_1_2_1_1 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :MainRotor ;
  x3do:hasChildren :Shape_2_1_2_1_1_1, :Transform_2_1_2_1_1_2, :Transform_2_1_2_1_1_3, :Transform_2_1_2_1_1_4, :Transform_2_1_2_1_1_5, :Transform_2_1_2_1_1_6, :Transform_2_1_2_1_1_7, :Transform_2_1_2_1_1_8, :Transform_2_1_2_1_1_9 ;
  x3do:scale ( 0.6 0.6 0.6 ) .
:Shape_2_1_2_1_1_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_1_2_1_1 ;
  x3do:hasAppearance :ShaftColor ;
  x3do:hasGeometry :Cylinder_2_1_2_1_1_1_2 .
:ShaftColor a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_1_2_1_1_1 ;
  x3do:hasMaterial :Material_2_1_2_1_1_1_1_1 ;
  x3do:DEF 'ShaftColor' .
:Material_2_1_2_1_1_1_1_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :ShaftColor ;
  x3do:diffuseColor ( 0.5 0.5 0.5 ) .
:Cylinder_2_1_2_1_1_1_2 a owl:NamedIndividual, x3do:Cylinder ;
  x3do:hasParent :Shape_2_1_2_1_1_1 ;
  x3do:bottom false ;
  x3do:height 1.5 ;
  x3do:radius 0.1 ;
  x3do:top false .
:Transform_2_1_2_1_1_2 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Transform_2_1_2_1_1 ;
  x3do:hasChildren :Shape_2_1_2_1_1_2_1 ;
  x3do:translation ( 0 0.75 0 ) .
:Shape_2_1_2_1_1_2_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_1_2_1_1_2 ;
  x3do:hasAppearance :ShaftColor-USE-1 ;
  x3do:hasGeometry :Cylinder_2_1_2_1_1_2_1_2 .
:ShaftColor-USE-1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_1_2_1_1_2_1 ;
  owl:sameAs :ShaftColor . # DEF matching this USE
:Cylinder_2_1_2_1_1_2_1_2 a owl:NamedIndividual, x3do:Cylinder ;
  x3do:hasParent :Shape_2_1_2_1_1_2_1 ;
  x3do:height 0.1 ;
  x3do:radius 0.4 .
:Transform_2_1_2_1_1_3 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Transform_2_1_2_1_1 ;
  x3do:hasChildren :Arm ;
  x3do:rotation ( 1 0 0 1.57 ) ;
  x3do:translation ( 0 0.75 0 ) .
:Arm a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_1_2_1_1_3 ;
  x3do:hasAppearance :ShaftColor-USE-2 ;
  x3do:hasGeometry :Cylinder_2_1_2_1_1_3_1_2 ;
  x3do:DEF 'Arm' .
:ShaftColor-USE-2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Arm ;
  owl:sameAs :ShaftColor . # DEF matching this USE
:Cylinder_2_1_2_1_1_3_1_2 a owl:NamedIndividual, x3do:Cylinder ;
  x3do:hasParent :Arm ;
  x3do:height 1.75 ;
  x3do:radius 0.05 .
:Transform_2_1_2_1_1_4 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Transform_2_1_2_1_1 ;
  x3do:hasChildren :Arm-USE-1 ;
  x3do:rotation ( 0 0 1 1.57 ) ;
  x3do:translation ( 0 0.75 0 ) .
:Arm-USE-1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_1_2_1_1_4 ;
  owl:sameAs :Arm . # DEF matching this USE
:Transform_2_1_2_1_1_5 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Transform_2_1_2_1_1 ;
  x3do:hasChildren :Shape_2_1_2_1_1_5_1 ;
  x3do:translation ( 0 -0.4 0 ) .
:Shape_2_1_2_1_1_5_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_1_2_1_1_5 ;
  x3do:hasAppearance :ShaftColor-USE-3 ;
  x3do:hasGeometry :Cylinder_2_1_2_1_1_5_1_2 .
:ShaftColor-USE-3 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_1_2_1_1_5_1 ;
  owl:sameAs :ShaftColor . # DEF matching this USE
:Cylinder_2_1_2_1_1_5_1_2 a owl:NamedIndividual, x3do:Cylinder ;
  x3do:hasParent :Shape_2_1_2_1_1_5_1 ;
  x3do:height 0.1 ;
  x3do:radius 0.3 .
:Transform_2_1_2_1_1_6 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Transform_2_1_2_1_1 ;
  x3do:hasChildren :Tube ;
  x3do:rotation ( 0.71 0.02 -0.71 0.10 ) ;
  x3do:translation ( 0.23 0.15 0.23 ) .
:Tube a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_1_2_1_1_6 ;
  x3do:hasAppearance :ShaftColor-USE-4 ;
  x3do:hasGeometry :Cylinder_2_1_2_1_1_6_1_2 ;
  x3do:DEF 'Tube' .
:ShaftColor-USE-4 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Tube ;
  owl:sameAs :ShaftColor . # DEF matching this USE
:Cylinder_2_1_2_1_1_6_1_2 a owl:NamedIndividual, x3do:Cylinder ;
  x3do:hasParent :Tube ;
  x3do:height 1.1 ;
  x3do:radius 0.05 .
:Transform_2_1_2_1_1_7 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Transform_2_1_2_1_1 ;
  x3do:hasChildren :Tube-USE-1 ;
  x3do:rotation ( -0.71 0.02 0.71 0.10 ) ;
  x3do:translation ( -0.23 0.15 -0.23 ) .
:Tube-USE-1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_1_2_1_1_7 ;
  owl:sameAs :Tube . # DEF matching this USE
:Transform_2_1_2_1_1_8 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Transform_2_1_2_1_1 ;
  x3do:hasChildren :Tube-USE-2 ;
  x3do:rotation ( 0.71 -0.02 0.71 0.10 ) ;
  x3do:translation ( -0.23 0.15 0.23 ) .
:Tube-USE-2 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_1_2_1_1_8 ;
  owl:sameAs :Tube . # DEF matching this USE
:Transform_2_1_2_1_1_9 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Transform_2_1_2_1_1 ;
  x3do:hasChildren :Tube-USE-3 ;
  x3do:rotation ( -0.71 -0.02 -0.71 0.10 ) ;
  x3do:translation ( 0.23 0.15 -0.23 ) .
:Tube-USE-3 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_1_2_1_1_9 ;
  owl:sameAs :Tube . # DEF matching this USE
:RotationSwitch a owl:NamedIndividual, x3do:Switch ;
  x3do:hasParent :MainRotor ;
  x3do:hasChildren :FourBlades, :LOD_2_1_2_1_2_2 ;
  x3do:DEF 'RotationSwitch' ;
  x3do:whichChoice 0 .
:FourBlades a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :RotationSwitch ;
  x3do:hasChildren :Transform_2_1_2_1_2_1_1, :Transform_2_1_2_1_2_1_2, :Transform_2_1_2_1_2_1_3, :Transform_2_1_2_1_2_1_4 ;
  x3do:DEF 'FourBlades' .
:Transform_2_1_2_1_2_1_1 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :FourBlades ;
  x3do:hasChildren :Blade ;
  x3do:rotation ( 1 0 0 1.83 ) ;
  x3do:translation ( 0.45 0.375 0.25 ) .
:Blade a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_1_2_1_2_1_1 ;
  x3do:hasAppearance :BladeColor ;
  x3do:hasGeometry :Extrusion_2_1_2_1_2_1_1_1_2 ;
  x3do:DEF 'Blade' .
:BladeColor a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Blade ;
  x3do:hasMaterial :Material_2_1_2_1_2_1_1_1_1_1 ;
  x3do:DEF 'BladeColor' .
:Material_2_1_2_1_2_1_1_1_1_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :BladeColor ;
  x3do:diffuseColor ( 0.2 0.2 0.2 ) .
:Extrusion_2_1_2_1_2_1_1_1_2 a owl:NamedIndividual, x3do:Extrusion ;
  x3do:hasParent :Blade ;
  x3do:ccw false ;
  x3do:creaseAngle 0.8 ;
  x3do:crossSection ( -0.10 0.00 0.06 -0.01 0.10 -0.02 0.16 -0.03 0.22 -0.035 0.28 -0.03 0.30 -0.025 0.32 -0.02 0.331 0.00 0.32 0.016 0.30 0.018 0.28 0.02 0.22 0.02 0.16 0.02 0.10 0.018 0.06 0.01 -0.10 0.00 ) ;
  x3do:spine ( 0.08 0.0 0.0 5.3 0.0 0.0 ) .
:Transform_2_1_2_1_2_1_2 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :FourBlades ;
  x3do:hasChildren :Shape_2_1_2_1_2_1_2_1 ;
  x3do:rotation ( 0 0 1 2.88 ) ;
  x3do:translation ( 0.25 0.375 -0.45 ) .
:Shape_2_1_2_1_2_1_2_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_1_2_1_2_1_2 ;
  x3do:hasAppearance :BladeColor-USE-1 ;
  x3do:hasGeometry :Extrusion_2_1_2_1_2_1_2_1_2 .
:BladeColor-USE-1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_1_2_1_2_1_2_1 ;
  owl:sameAs :BladeColor . # DEF matching this USE
:Extrusion_2_1_2_1_2_1_2_1_2 a owl:NamedIndividual, x3do:Extrusion ;
  x3do:hasParent :Shape_2_1_2_1_2_1_2_1 ;
  x3do:ccw false ;
  x3do:creaseAngle 0.8 ;
  x3do:crossSection ( -0.10 0.00 0.06 -0.01 0.10 -0.02 0.16 -0.03 0.22 -0.035 0.28 -0.03 0.30 -0.025 0.32 -0.02 0.331 0.00 0.32 0.016 0.30 0.018 0.28 0.02 0.22 0.02 0.16 0.02 0.10 0.018 0.06 0.01 -0.10 0.00 ) ;
  x3do:spine ( 0.00 0.0 -0.08 0.0 0.0 -5.3 ) .
:Transform_2_1_2_1_2_1_3 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :FourBlades ;
  x3do:hasChildren :Shape_2_1_2_1_2_1_3_1 ;
  x3do:rotation ( 1 0 0 1.31 ) ;
  x3do:translation ( -0.45 0.375 -0.25 ) .
:Shape_2_1_2_1_2_1_3_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_1_2_1_2_1_3 ;
  x3do:hasAppearance :BladeColor-USE-2 ;
  x3do:hasGeometry :Extrusion_2_1_2_1_2_1_3_1_2 .
:BladeColor-USE-2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_1_2_1_2_1_3_1 ;
  owl:sameAs :BladeColor . # DEF matching this USE
:Extrusion_2_1_2_1_2_1_3_1_2 a owl:NamedIndividual, x3do:Extrusion ;
  x3do:hasParent :Shape_2_1_2_1_2_1_3_1 ;
  x3do:ccw false ;
  x3do:creaseAngle 0.8 ;
  x3do:crossSection ( -0.10 0.00 0.06 -0.01 0.10 -0.02 0.16 -0.03 0.22 -0.035 0.28 -0.03 0.30 -0.025 0.32 -0.02 0.331 0.00 0.32 0.016 0.30 0.018 0.28 0.02 0.22 0.02 0.16 0.02 0.10 0.018 0.06 0.01 -0.10 0.00 ) ;
  x3do:spine ( -0.08 0.0 0.0 -5.3 0.0 0.0 ) .
:Transform_2_1_2_1_2_1_4 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :FourBlades ;
  x3do:hasChildren :Shape_2_1_2_1_2_1_4_1 ;
  x3do:rotation ( 0 0 1 0.26 ) ;
  x3do:translation ( -0.25 0.375 0.45 ) .
:Shape_2_1_2_1_2_1_4_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_1_2_1_2_1_4 ;
  x3do:hasAppearance :BladeColor-USE-3 ;
  x3do:hasGeometry :Extrusion_2_1_2_1_2_1_4_1_2 .
:BladeColor-USE-3 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_1_2_1_2_1_4_1 ;
  owl:sameAs :BladeColor . # DEF matching this USE
:Extrusion_2_1_2_1_2_1_4_1_2 a owl:NamedIndividual, x3do:Extrusion ;
  x3do:hasParent :Shape_2_1_2_1_2_1_4_1 ;
  x3do:ccw false ;
  x3do:creaseAngle 0.8 ;
  x3do:crossSection ( -0.10 0.00 0.06 -0.01 0.10 -0.02 0.16 -0.03 0.22 -0.035 0.28 -0.03 0.30 -0.025 0.32 -0.02 0.331 0.00 0.32 0.016 0.30 0.018 0.28 0.02 0.22 0.02 0.16 0.02 0.10 0.018 0.06 0.01 -0.10 0.00 ) ;
  x3do:spine ( 0.00 0.0 0.08 0.0 0.0 5.3 ) .
:LOD_2_1_2_1_2_2 a owl:NamedIndividual, x3do:LOD ;
  x3do:hasParent :RotationSwitch ;
  x3do:hasChildren :FourBlades-USE-1, :Group_2_1_2_1_2_2_2, :WorldInfo_2_1_2_1_2_2_3 ;
  x3do:range ( 50 200 ) .
:FourBlades-USE-1 a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :LOD_2_1_2_1_2_2 ;
  owl:sameAs :FourBlades . # DEF matching this USE
:Group_2_1_2_1_2_2_2 a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :LOD_2_1_2_1_2_2 ;
  x3do:hasChildren :Transform_2_1_2_1_2_2_2_1 .
:Transform_2_1_2_1_2_2_2_1 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Group_2_1_2_1_2_2_2 ;
  x3do:hasChildren :Shape_2_1_2_1_2_2_2_1_1 ;
  x3do:translation ( 0 0.45 0 ) .
:Shape_2_1_2_1_2_2_2_1_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_1_2_1_2_2_2_1 ;
  x3do:hasAppearance :Appearance_2_1_2_1_2_2_2_1_1_1 ;
  x3do:hasGeometry :Cylinder_2_1_2_1_2_2_2_1_1_2 .
:Appearance_2_1_2_1_2_2_2_1_1_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_1_2_1_2_2_2_1_1 ;
  x3do:hasMaterial :Material_2_1_2_1_2_2_2_1_1_1_1 .
:Material_2_1_2_1_2_2_2_1_1_1_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_1_2_1_2_2_2_1_1_1 ;
  x3do:diffuseColor ( 0.2 0.2 0.2 ) ;
  x3do:transparency 0.75 .
:Cylinder_2_1_2_1_2_2_2_1_1_2 a owl:NamedIndividual, x3do:Cylinder ;
  x3do:hasParent :Shape_2_1_2_1_2_2_2_1_1 ;
  x3do:height 0.1 ;
  x3do:radius 6 .
:WorldInfo_2_1_2_1_2_2_3 a owl:NamedIndividual, x3do:WorldInfo ;
  x3do:hasParent :LOD_2_1_2_1_2_2 ;
  x3do:title 'null' .
:BladeRotationOnOffScript a owl:NamedIndividual, x3do:Script ;
  x3do:hasParent :MainRotor ;
  x3do:hasField :field_2_1_2_1_3_1, :field_2_1_2_1_3_2, :field_2_1_2_1_3_3 ;
  x3do:hasIS :IS_2_1_2_1_3_4 ;
  x3do:DEF 'BladeRotationOnOffScript' ;
  x3do:sourceCode """
ecmascript:

function rotationOn(value, timeStamp) {
   if (value == true)
   {
      clockEnabled = true;
      switchChoice = 1;
   }
   else
   {
      clockEnabled = false;
      switchChoice = 0;
   }
}
""" .
:field_2_1_2_1_3_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :BladeRotationOnOffScript ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'rotationOn' ;
  x3do:type 'SFBool' .
:field_2_1_2_1_3_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :BladeRotationOnOffScript ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'clockEnabled' ;
  x3do:type 'SFBool' .
:field_2_1_2_1_3_3 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :BladeRotationOnOffScript ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'switchChoice' ;
  x3do:type 'SFInt32' .
:IS_2_1_2_1_3_4 a owl:NamedIndividual, x3do:IS ;
  x3do:hasParent :BladeRotationOnOffScript ;
  x3do:hasConnect :connect_2_1_2_1_3_4_1 .
:connect_2_1_2_1_3_4_1 a owl:NamedIndividual, x3do:connect ;
  x3do:hasParent :IS_2_1_2_1_3_4 ;
  x3do:nodeField 'rotationOn' ;
  x3do:protoField 'rotationOn' .
:Clock a owl:NamedIndividual, x3do:TimeSensor ;
  x3do:hasParent :MainRotor ;
  x3do:DEF 'Clock' ;
  x3do:enabled false ;
  x3do:loop true .
:MainRotorPath a owl:NamedIndividual, x3do:OrientationInterpolator ;
  x3do:hasParent :MainRotor ;
  x3do:DEF 'MainRotorPath' ;
  x3do:key ( 0.0 0.25 0.5 0.75 1.0 ) ;
  x3do:keyValue ( 0.00 -1.00 0.0 0.0 0.00 -1.00 0.0 1.571 0.00 -1.00 0.0 3.142 0.00 -1.00 0.0 4.712 0.00 -1.00 0.0 6.284 ) .
:ROUTE_2_1_2_2 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :ProtoBody_2_1_2 ;
  x3do:fromField 'clockEnabled' ;
  x3do:fromNode 'BladeRotationOnOffScript' ;
  x3do:toField 'set_enabled' ;
  x3do:toNode 'Clock' .
:ROUTE_2_1_2_3 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :ProtoBody_2_1_2 ;
  x3do:fromField 'switchChoice' ;
  x3do:fromNode 'BladeRotationOnOffScript' ;
  x3do:toField 'whichChoice' ;
  x3do:toNode 'RotationSwitch' .
:ROUTE_2_1_2_4 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :ProtoBody_2_1_2 ;
  x3do:fromField 'fraction_changed' ;
  x3do:fromNode 'Clock' ;
  x3do:toField 'set_fraction' ;
  x3do:toNode 'MainRotorPath' .
:ROUTE_2_1_2_5 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :ProtoBody_2_1_2 ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'MainRotorPath' ;
  x3do:toField 'set_rotation' ;
  x3do:toNode 'MainRotor' .
:WorldInfo_2_2 a owl:NamedIndividual, x3do:WorldInfo ;
  x3do:hasParent :Scene ;
  x3do:title 'FourBladeMainRotor Prototype' .
:Background_2_3 a owl:NamedIndividual, x3do:Background ;
  x3do:hasParent :Scene ;
  x3do:skyColor ( 0.9 0.9 0.9 ) .
:Viewpoint_2_4 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:description 'Toggle Blade Status' ;
  x3do:position ( 0 1 12 ) .
:Viewpoint_2_5 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:description 'At a distance' ;
  x3do:position ( 0 1 50 ) .
:ExampleMainRotor a owl:NamedIndividual, x3do:ProtoInstance ;
  x3do:hasParent :Scene ;
  x3do:DEF 'ExampleMainRotor' ;
  x3do:name 'FourBladeMainRotor' .
:Transform_2_7 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :ExampleBladeRotationToggle, :Shape_2_7_2, :Shape_2_7_3 ;
  x3do:translation ( 0 2.5 0 ) .
:ExampleBladeRotationToggle a owl:NamedIndividual, x3do:TouchSensor ;
  x3do:hasParent :Transform_2_7 ;
  x3do:DEF 'ExampleBladeRotationToggle' ;
  x3do:description 'Toggle blade rotation on/off' .
:Shape_2_7_2 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_7 ;
  x3do:hasAppearance :Appearance_2_7_2_1 ;
  x3do:hasGeometry :Text_2_7_2_2 .
:Appearance_2_7_2_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_7_2 ;
  x3do:hasMaterial :ToggleStatusColor .
:ToggleStatusColor a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_7_2_1 ;
  x3do:DEF 'ToggleStatusColor' ;
  x3do:diffuseColor ( 0.6 0.6 0 ) .
:Text_2_7_2_2 a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_7_2 ;
  x3do:hasFontStyle :FontStyle_2_7_2_2_1 ;
  x3do:string '"Select Text to Toggle" "Blade Rotation On/Off"' .
:FontStyle_2_7_2_2_1 a owl:NamedIndividual, x3do:FontStyle ;
  x3do:hasParent :Text_2_7_2_2 ;
  x3do:justify '"MIDDLE" "MIDDLE"' .
:Shape_2_7_3 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_7 ;
  x3do:hasGeometry :Box_2_7_3_1 ;
  x3do:hasAppearance :Appearance_2_7_3_2 .
:Box_2_7_3_1 a owl:NamedIndividual, x3do:Box ;
  x3do:hasParent :Shape_2_7_3 ;
  x3do:size ( 10 2.0 0.01 ) .
:Appearance_2_7_3_2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_7_3 ;
  x3do:hasMaterial :Material_2_7_3_2_1 .
:Material_2_7_3_2_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_7_3_2 ;
  x3do:transparency 1 .
:ExampleSelection a owl:NamedIndividual, x3do:Script ;
  x3do:hasParent :Scene ;
  x3do:hasField :field_2_8_1, :field_2_8_2, :field_2_8_3, :field_2_8_4 ;
  x3do:DEF 'ExampleSelection' ;
  x3do:sourceCode """
ecmascript:

function toggleEnabled(value, ts) {
   if (armed == -1)
   {
      toggleEnabled = false;
      armed = 0;
   }

   if (armed == 0)
   {
      armed = 1;

      if (toggleEnabled == false)
      {
         status = true;
         statusColor = new SFColor(0, 0.8, 0);
         toggleEnabled = true;
      }
      else
      {
         status = false;
         statusColor = new SFColor(0.8, 0.8, 0);
         toggleEnabled = false;
      }
   }
   else
   {
      armed = 0;
      return;
   }
}
""" .
:field_2_8_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExampleSelection ;
  x3do:accessType 'initializeOnly' ;
  x3do:name 'armed' ;
  x3do:type 'SFInt32' ;
  x3do:value -1 .
:field_2_8_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExampleSelection ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'toggleEnabled' ;
  x3do:type 'SFBool' .
:field_2_8_3 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExampleSelection ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'statusColor' ;
  x3do:type 'SFColor' .
:field_2_8_4 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExampleSelection ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'status' ;
  x3do:type 'SFBool' .
:ROUTE_2_9 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'isActive' ;
  x3do:fromNode 'ExampleBladeRotationToggle' ;
  x3do:toField 'toggleEnabled' ;
  x3do:toNode 'ExampleSelection' .
:ROUTE_2_10 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'statusColor' ;
  x3do:fromNode 'ExampleSelection' ;
  x3do:toField 'diffuseColor' ;
  x3do:toNode 'ToggleStatusColor' .
:ROUTE_2_11 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'status' ;
  x3do:fromNode 'ExampleSelection' ;
  x3do:toField 'rotationOn' ;
  x3do:toNode 'ExampleMainRotor' .
